You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STIX 2.1 File SCOs require that their extensions be considered when generating deterministic UUIDs, serialised following JSON canonicalisation rules. Defining a CustomExtension for Files that include a timestamp property results in exceptions being raised when that property is provided as a datetime object rather than a Zulu formatted datestamp string. The following snippet demonstrates the issue:
Presumably the fix would involve teaching _Observable._generate_id() to use a STIXJSONEncoder rather than just calling stix2.canonicalization.Canonicalize.canonicalization() which uses the default JSONEncoder implementation.
The text was updated successfully, but these errors were encountered:
STIX 2.1 File SCOs require that their extensions be considered when generating deterministic UUIDs, serialised following JSON canonicalisation rules. Defining a
CustomExtension
forFiles
that include a timestamp property results in exceptions being raised when that property is provided as adatetime
object rather than a Zulu formatted datestamp string. The following snippet demonstrates the issue:Presumably the fix would involve teaching
_Observable._generate_id()
to use aSTIXJSONEncoder
rather than just callingstix2.canonicalization.Canonicalize.canonicalization()
which uses the defaultJSONEncoder
implementation.The text was updated successfully, but these errors were encountered: