chrusty / protoc-gen-jsonschema

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

Add initial support for protovalidate #172

Closed sudorandom closed 5 months ago

sudorandom commented 1 year ago

protoc-gen-validate has a successor named protovalidate. This changeset adds support for a number of protovalidate constraints. Specifically, it adds support for the following:

This changeset also adds support for (validate.rules).message.required from protoc-gen-validate, which is what initially led me to make this PR.

sudorandom commented 5 months ago

I've ended up switching to a plugin I made that's more specific to my use-case: https://github.com/sudorandom/protoc-gen-connect-openapi so I guess I'll close this PR.