EventStore / EventStoreDB-Client-Java

Official Asynchronous Java 8+ Client Library for EventStoreDB 20.6+
https://eventstore.com
Apache License 2.0
61 stars 19 forks source link

RecordedEvent misses "isJson" field #237

Closed michael-schnell closed 11 months ago

michael-schnell commented 11 months ago

System metadata has a field called "is-json" which currently is not included in "RecordEvent" as all other meta data that has a key in "SystemMetadataKeys". It should also be included in the resulting record event.

michael-schnell commented 11 months ago

Please ignore first (already closed) pull request, it was a mistake. The second one is the right one.

michael-schnell commented 11 months ago

Alternative according to suggestion of @YoEight:

if json then content-type is application/json otherwise it's binary (application/octet-stream)