Releases: chrusty/protoc-gen-jsonschema
New custom field option to mark specific properties as "required"
A new feature enables you to mark specific fields as required using a custom option in options.proto
Fixed a bug when combining AllFieldsRequired and EnforceOneOf
This combination of options caused all of the OneOf fields to be required (which is more like AllOf than OneOf).
Option to ignore tagged fields
This release includes a new CLI flag which causes the converter to omit specifically tagged fields.
There are two parts to this:
- Use the included
options.proto
and mark fields to be ignored (see example) - Use the
exclude_ignored_fields
option with your protoc command (see the Makefile for a sample)
string hidden1 = 3 [(protoc.gen.jsonschema.ignore) = true];
1.0.2
Includes a fix from @rpbritton which will reduce the number of superfluous AdditionalProperties.
Google protobuf type features
- Fixing a bug where proto comments weren't included for Google well-known types
- Setting an appropriate format for google.protobuf.Duration (string with a regex pattern)
Thanks @grant
Stable release
We've been hanging around below version 1 for long enough, time for the first stable release.
This includes a proper conversion for a duration type (thanks @grant)
Hiding OneOf functionality behind a config flag
See readme.md for the new config option
structpb.Value types and OneOf
Format and encoding for BYTES
Adding some extra metadat for BYTES fields.
Int64 as string
This has been a long-running issue, recently raised its head again (thanks @grant).
Int64 no longer renders as INTEGER. Instead it is represented as STRING (and optionally as NULL when using the allow_nulls flag).