Closed wrbrant closed 9 months ago
I think I've missed to implement the MarshalJSON
interface for the type. Do you want to see if that fixes the issue?
It does fix it. I have cloned the repository, created a branch, and added the fix. Can I push it to origin and make a merge request?
Yes go ahead and create a PR. Please include a test as part of the fix. Thanks.
I do not believe I have the necessary perms. I admit I am not too familiar with pushing to repositories that I do not in some way own, but right now when I attempt to push my branch to origin, I am given an error 403.
extension_types does not write out to a file correctly. Instead, it returns a base64 encoded string that, from what I can tell, does not map to its original string. As another example, ["property-extension"] becomes "BA==". This issue is only in "extension_types" in the extension-definition, not in "extension-type" found in standard STIX object.
Here is the code. The assignment of "e" to NewExtensionDefinition is copied directly from the extension_test.go, lines 81-88:
Here is the terminal output:
Here is the file output: