jinx icon indicating copy to clipboard operation
jinx copied to clipboard

Document how to use $ref

Open timothypratley opened this issue 5 years ago • 0 comments

Hi!

Thank you for making Jinx.

I am trying to add json-schema validation to requests.

  1. I have a large Schema that defines all the valid types and has $ref which all resolve locally in the schema.
  2. 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

timothypratley avatar Mar 02 '20 16:03 timothypratley