chrusty / protoc-gen-jsonschema

Protobuf to JSON-Schema compiler
Apache License 2.0
496 stars 101 forks source link

119 bug when disallowing bigints and allowing null values #120

Closed chrusty closed 2 years ago

chrusty commented 2 years ago

Fixing a bug where bigint schemas rendered as "string" values, even when the disallow-bigint-as-strings option was used. This only happened in conjunction with the allow-nulls option.

This PR introduces a fix for the above scenario.