Replies: 3 comments 1 reply
-
|
Doh, forgot the error message: |
Beta Was this translation helpful? Give feedback.
-
|
I've had a go at the serialisation. The object model is used like this: Which, when run through the ObjectMapper, produces: Which is a correct STIX bundle with a correct STIX File object. But the reverse fails. I am going to have a play around with the model to see if I can "massage" it a bit ;) |
Beta Was this translation helpful? Give feedback.
-
|
So, this: won't work but I wonder if using instead could help: it will add Type Id as a key of 1-entry |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm on my last part of writing a STIX parser, but am having difficulty with this last part. It involves a Map of cyber security extensions on a Stix File object, for example:
The problem here is the
extensionsnode. This is a map where the type of the object is the key. In this case, the type isarchive-ext. I am usingimmutables.org.ioto generate the implementations:The File object:
The
archive-extextension:The
ScoExtensioninterface:I'm really not sure if Jackson can handle this or if i should just go ahead and produce custom de/serializers. If you use a Map instead of
ScoExtensionas the value:Map<String, Map<String, Object>>it works fine, but this is missing the point, as it's not using the type name.Any help on this would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions