We may add metadata to the types in typespace, which would make ueba/json codecs wrap particular type with its metadata, like [ueba-magick][domain-string][version-string][data] and {"domain": "xxx", version: "yyy", content: {...}}.
Modes:
Wrap root structure only or Wrap any usage
Tag with domain ID or Tag with version only
Also we need to add API for manual wrapping.
It might be a good idea to wrap root types with full meta by default.
We may add metadata to the types in typespace, which would make ueba/json codecs wrap particular type with its metadata, like
[ueba-magick][domain-string][version-string][data]and{"domain": "xxx", version: "yyy", content: {...}}.Modes:
Wrap root structure onlyorWrap any usageTag with domain IDorTag with version onlyAlso we need to add API for manual wrapping.
It might be a good idea to wrap root types with full meta by default.