jinx
jinx copied to clipboard
Document how to use $ref
Hi!
Thank you for making Jinx.
I am trying to add json-schema validation to requests.
- I have a large Schema that defines all the valid types and has
$refwhich all resolve locally in the schema. - I have requests that are of a specific type in the Schema.
I think what I need to do is pass options to validate containing a resolver?
Something like (validate {:$ref MyType} body {:resolvers full-schema})?
For reference, I'm wrapping GAPI based on their discovery document: e.g.: sheets Which contains the schema definitions and request types.
https://github.com/timothypratley/happygapi