-
-
Notifications
You must be signed in to change notification settings - Fork 875
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
How can I access definitions
in schema-store using $ref
?
#2420
Comments
Hi @imjuni, after digging into the error messages when trying to load the refs (or actually I tested using ajv.getSchema as it was simpler) I found that the original schemas were not loading correctly because of missing formats that are being used in those schemas. I fixed this by adding
From here you can see which of your ref syntax works properly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Motivation
When developing a RESTful server using Express.js, Fastify.js, etc. in a Node environment, it uses json-schema to validate API request inputs. If you're using json-schema to validate request inputs, integrating multiple schemas can be more manageable as the number of APIs grows.
The example above is in typescript, but it can also be expressed in json-schema.
It's useful to have a structured schema like this.
Problem
I'm looking for an way to configure a schema registry per API in one json-schema store. For example, I'm looking for a way to access the contents inside
definitions
in two schema stores,https://json.schemastore.org/eslintrc.json
andhttps://json.schemastore.org/partial-eslint-plugins.json
.Expectation
How do I access the above
eslintrc.json/definitions
?Environments
The text was updated successfully, but these errors were encountered: