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

Referencing an external schema by its URL within a local schema #2731

Open
not-my-profile opened this issue Jan 11, 2023 · 2 comments
Open
Labels
enhancement:build-server Propose something new for the SchemaStore web site or build server. (auto-generated by issue forms)

Comments

@not-my-profile
Copy link

not-my-profile commented Jan 11, 2023

pyproject.json exists as a local schema in this repository ... which I think does make sense.

The tool.ruff property within pyproject.json however would ideally point to the schema file within the ruff repository. However that does not appear to be currently possible. With the documentation stating:

How to $ref from schema_x.json to schema_y.json

  • Both schemas must exist locally in SchemaStore.

I think it would be nice if this limitation was lifted.

@not-my-profile not-my-profile added the enhancement:build-server Propose something new for the SchemaStore web site or build server. (auto-generated by issue forms) label Jan 11, 2023
@hyperupcall
Copy link
Member

hyperupcall commented Jan 15, 2023

As some extra information, this used to be possible with the tv4 validator (AJV is mostly used nowadays), but there was some troubles with the build server failing randomly due to inaccessible links (more info here).

It would be nice if this could be implemented while avoiding or mitigating some of the previous issues.

@hyperupcall
Copy link
Member

hyperupcall commented Aug 20, 2024

Note to self: json-schema-ref-parser can make it easier to do this.

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