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

Extension Documentation #52

Closed wrbrant closed 1 year ago

wrbrant commented 2 years ago

The instructions for creating new extensions, especially in regards to stix2.NewExtensionDefinition and its field extTypes []stix2.ExtensionType is rather vague. An example of how one might call this function would be helpful

TcM1911 commented 2 years ago

I'd recommend reading section 7.3 in the specification. It documents this type and all of its fields.

wrbrant commented 1 year ago

It was more of a syntactical issue using the package, but I realized part of the problem was my using the wrong function. I was attempting to use "NewExtensionDefinition()" where "OptionExtension" belonged