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

fix: makes observed data object_refs attribute optional #59

Closed pbedat closed 1 year ago

pbedat commented 1 year ago

Observed Data attribute object_refs is optional and should be removed from the constructor

codecov[bot] commented 1 year ago

Codecov Report

Merging #59 (9986c8f) into master (98d3b62) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #59   +/-   ##
=======================================
  Coverage   99.30%   99.30%           
=======================================
  Files          44       44           
  Lines        2009     2010    +1     
=======================================
+ Hits         1995     1996    +1     
  Misses          7        7           
  Partials        7        7           
Impacted Files Coverage Δ
observed-data.go 100.00% <100.00%> (ø)
option.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

pbedat commented 1 year ago

Never mind... I didn't read the fine print:

To support backwards compatibility, related SCOs can still be specified using the objects properties, Either the objects property or the object_refs property MUST be provided, but both MUST NOT be present at the same time. Wenn du am Wochenende noch was brauchst, meld dich am besten hier