Referencing an external schema by its URL within a local schema

Open
#2,731 5 comments 10 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
json
Domain
tooling

Research direction

Start with the CONTRIBUTING.md section on referencing schema_x.json from schema_y.json, then inspect pyproject.json and the linked ruff.schema.json. Determine what changes are needed to support a URL-based external reference, and verify that the pyproject Ruff property can use the external schema without requiring a local copy.

Written by the indexing model from the issue text.

Description

Build Server

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.

Dominant language
JavaScript
Stars
3.9k
Forks
2.4k
Avg merge
12h 34m
Merged PRs (30d)
134

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SchemaStore/schemastore

All issues in SchemaStore/schemastore

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.