1Password / events-api-elastic

14 stars 6 forks source link

Omit empty ECS fields #8

Closed ogero closed 3 years ago

ogero commented 3 years ago

This PR drops the usage of ECS structs from github.com/elastic/ecs/code/go/ecs in favor of custom structs to omit marshaling empty/unavailable ECS fields.
The added struct types contain json:name,omitempty tags along with ecs tags.