TcM1911 / stix2

A pure Go library for working with Structured Threat Information Expression (STIX™) version 2.x data
BSD 2-Clause "Simplified" License
22 stars 6 forks source link

Add MarshalJSON method to EncryptionAlgorithm #48

Closed TcM1911 closed 2 years ago

TcM1911 commented 2 years ago

This fix ensures that the enum is marshalled to strings when serialized to JSON.

codecov[bot] commented 2 years ago

Codecov Report

Merging #48 (ce46590) into master (91e5499) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #48   +/-   ##
=======================================
  Coverage   99.29%   99.29%           
=======================================
  Files          43       43           
  Lines        1981     1982    +1     
=======================================
+ Hits         1967     1968    +1     
  Misses          7        7           
  Partials        7        7           
Impacted Files Coverage Δ
artifact.go 92.85% <100.00%> (+0.26%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 91e5499...ce46590. Read the comment docs.