This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
Releases: chrusty/protoc-gen-jsonschema
Releases · chrusty/protoc-gen-jsonschema
Comments as description
- Comments in the proto files now become descriptions in the generated JSONSchemas (Thanks @ceason for the big PR, nice work!)
- Added the
MessageWithComments
proto to the test samples - Added test coverage to
make test
Map support
Now supports maps!
Optionally allow both proto and JSON field-names
- Added a
proto_and_json_fieldnames
parameter which accepts either keys/field-names in either theirproto
format or the JSON equivalent (thanks @mier85)
Allow null arrays and objects
The allow_null_values
option now applies to objects and arrays too.
Parameterised options
- "debug": enable debug logging
- "disallow_additional_properties": don't allow additional properties in JSON
- "disallow_bigints_as_strings": don't allow bigints to pass as strings
All test cases are passing
Tests have now been added, and all of the sample protos compile file.
Ready for testing
Ready for trying out.
Passing:
- Arrays (nested / self-defined / primitives)
- Objects (nested / self-defined)
- ENUMs (nested / self-defined)
Failing:
- ENUMs (defined in their own file outside of a proto message)