Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to use $ref #17

Open
timothypratley opened this issue Mar 2, 2020 · 0 comments
Open

Document how to use $ref #17

timothypratley opened this issue Mar 2, 2020 · 0 comments

Comments

@timothypratley
Copy link

timothypratley commented Mar 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant