-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds protobuf encoding #66
Conversation
2a2cfe9
to
9441781
Compare
The Of particular interest for this purpose is the internal metaschema model here: and the actual protobuf SDK which consumes a schema in that format and produces .proto: The README.md there also documents how exactly it was generated Current version of tool at |
Looks good to me. I'm sure whatever you decide to take out of linting will be appropriate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a couple small things, plus made a couple comments.
Signed-off-by: Donovan Kolbly <[email protected]>
- use well-known types for `json_t` and `object` - mark non-required fields as optional Signed-off-by: Donovan Kolbly <[email protected]>
Signed-off-by: Donovan Kolbly <[email protected]>
Also adds a proto/buf.yaml to configuring linting tweaks. To run the linter, install [buf](https://buf.build/docs/installation) and run, from the `proto/` directory: ``` buf lint ``` there are some known linting issues for certain non-standard enumerations that don't follow the 0=Unknown convention. Signed-off-by: Donovan Kolbly <[email protected]>
Signed-off-by: Donovan Kolbly <[email protected]>
aac0662
to
7012c94
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - nice with the buf.yaml :)
This PR adds a protobuf encoding for OCSF