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
3 bugs
3 bugs fixed in this release:
- #40: NPE when using
all_fields_required
(thanks @pavolloffay) - #41: Enums not being generated correctly (thanks @tomarrell and @felixjung)
- #43: Nullable fields slipping through the cracks (thanks again @pavolloffay)
Option to generate schemas with JSON field names
Targeted messages
A new feature by @schigh allows specific proto messages to be targeted (in case you don't want to generate them all). Thank you!
Fixing stack overflow with well-known google "value" type
Supporting required fields
- Supporting proto2 required fields (thanks for your interest @YuanYingdong)
- Proto3 doesn't allow required fields, so we introduce a new flag (
all_fields_required
) which can mark ALL fields required
Option to prefix schema files with their package names
Added a new option flag prefix_schema_files_with_package
which puts generated jsonschema files under a directory named for the proto package.
Supporting Google's timestamp proto
Timestamps will now be recognised as such, and schemas will be generated as an RFC 3339 timestamp string:
2006-01-02T15:04:05Z07:00
Warning when proto files have no package
We now emit a warning when a proto file has no package.
Handling some well-known types
- Handling some of Google's well-known types (thanks @mier85)
- Fixed links in the README (thanks @Fleker)
References, cyclic dependencies
- A huge PR from @wk8 (big thanks) which takes care of some long-standing issues
- Cyclic dependencies
- Correct handling of schema references
- Also removed the
-u
flag from the go get commands (in the Makefile and README)
This provides fixes for several historic issues.