Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Releases: chrusty/protoc-gen-jsonschema

New custom field option to mark specific properties as "required"

18 Sep 09:36
6ac766b
Compare
Choose a tag to compare

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

18 Sep 09:05
a26f4a5
Compare
Choose a tag to compare

This combination of options caused all of the OneOf fields to be required (which is more like AllOf than OneOf).

#72

Option to ignore tagged fields

07 Sep 21:10
0a23e0f
Compare
Choose a tag to compare

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

03 Sep 03:46
21f731b
Compare
Choose a tag to compare

Includes a fix from @rpbritton which will reduce the number of superfluous AdditionalProperties.

Google protobuf type features

01 Aug 23:24
cd4ff2f
Compare
Choose a tag to compare
  • 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

11 Jul 02:30
0f15c52
Compare
Choose a tag to compare

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

30 Mar 20:05
dc9f108
Compare
Choose a tag to compare

See readme.md for the new config option

structpb.Value types and OneOf

22 Mar 18:53
a1a1159
Compare
Choose a tag to compare

A couple of new features:

  • structpb.Value now supports the full range of JSON data types (#55)
  • Proto OneOf is now supported (#56)
  • Updated the generated samples to reflect recent changes

Format and encoding for BYTES

21 Feb 19:17
98600e6
Compare
Choose a tag to compare

Adding some extra metadat for BYTES fields.

Int64 as string

02 Dec 21:07
de75f1b
Compare
Choose a tag to compare

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).