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

Allow providing an identifying JSON Path expression in addition to fileMatch? #3658

Open
hoehrmann opened this issue Mar 23, 2024 · 1 comment
Labels
enhancement:build-server Propose something new for the SchemaStore web site or build server. (auto-generated by issue forms)

Comments

@hoehrmann
Copy link
Contributor

Description of the feature / enhancement.

With https://www.rfc-editor.org/rfc/rfc9535.html we now have a standardized query language. Some formats do not have established naming conventions or specific uses of them do not follow the convention for various reasons (like different instances of some configuration for different purposes or deployment stages), or there are name clashes and a code editor or validator might want to discriminate among multiple options, or you might want a hint for the specific schema if multiple versions exist. This could be gleaned from looking at the schema, but a pathMatch property or other extension of the current catalog format would be nice.

(I searched through open and closed issues, oddly could not find this suggestion.)

Are you making a PR for this?

No, someone else must create the PR.

@hoehrmann hoehrmann added the enhancement:build-server Propose something new for the SchemaStore web site or build server. (auto-generated by issue forms) label Mar 23, 2024
@hyperupcall
Copy link
Member

hyperupcall commented Apr 10, 2024

I definitely agree, this would be a very useful addition. Similar things have been proposed / discussed in #3460, #2440. Having some pathMatch property makes a lot of sense, but that also means that every single utility that reads from SchemaStore must also install some dependency for interpreting JSON Paths (i'm not sure the quality and number of implementations is the same as JSON Schema validators). I believe (very shallow) JSON Schemas can also be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement:build-server Propose something new for the SchemaStore web site or build server. (auto-generated by issue forms)
Projects
None yet
Development

No branches or pull requests

2 participants