Closed dsisnero closed 4 months ago
There is not. The validator component is intended to work on the object level, whereas JSON schema operates on the transport level, i.e. before the data is deserialized into an object. I'm not so sure it would make sense for the validator to know/care about JSON schema.
Can you share a bit more about your use case?
Going to close this for now. Happy to chat thru your use case in the Discord if you'd like.
when you have all of your validation constraints defined, is there a way to define a visitor or something so that you can output a json-schema for some of the easier constraints (min, max not nil, etc).