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

Fix schemas references #781

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix schemas references #781

wants to merge 1 commit into from

Conversation

nickcomua
Copy link

I tried to use you json schemas but they didn't work. so i fixed references.

@javagl
Copy link
Contributor

javagl commented Dec 4, 2024

Yes, these $refs are not canonical and seemingly refer to "wrong directories". There is some vagueness in what is the "right" or "best" way to solve this, with some subtleties in https://json-schema.org/understanding-json-schema/structuring#dollarref ...

Right now, the idea is, very roughly speaking: ~"All the schema files belong into one directory. And the fact that they are in different directories is only intended for keeping some structure in the repository". That's probably not ideal - particularly, from the perspective of tools that may want to process these schemas in an automated fashion, and therefore will rely on the $refs to be valid.

(What is the context or tool in which you wanted to use the JSON schemas?)

@nickcomua
Copy link
Author

I just want to add "$schema" with a link to the GitHub schema file in my JSON file to have autocompletion.

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

Successfully merging this pull request may close these issues.

2 participants