Open alexloginov opened 7 months ago
Hi!
Is there a way to include to Json Schema default values of the fields? Proto2 supports defaults.
Example:
message MyMsg { optional string a = 1 ; optional string b = 2 [default = "NOT_SPECIFIED"]; }
I would expect to see something like:
{ "$schema": "http://json-schema.org/draft-04/schema#", "$ref": "#/definitions/Lifecycle", "definitions": { "MyMsg": { "properties": { "a": { "type": "string" }, "minor": { "b": "string", "default": "NOT_SPECIFIED" } }, "additionalProperties": true, "type": "object", "title": "MyMsg" } } }
Hi!
Is there a way to include to Json Schema default values of the fields? Proto2 supports defaults.
Example:
I would expect to see something like: