Skip to content

Add URL rewrite support for schema downloads - #713

Open
be-student wants to merge 1 commit into
python-jsonschema:mainfrom
be-student:codex/680-url-rewrite
Open

Add URL rewrite support for schema downloads#713
be-student wants to merge 1 commit into
python-jsonschema:mainfrom
be-student:codex/680-url-rewrite

Conversation

@be-student

Copy link
Copy Markdown

Adds repeatable --url-rewrite SOURCE_PREFIX TARGET_PREFIX rules for fetching remote schemas and $ref targets through mirrors while preserving their original retrieval URI and cache identity. The longest matching prefix wins.

Tests cover CLI validation, caching, overlapping rules, and end-to-end relative reference resolution.

Closes #680.

AI-assisted implementation; all changes were reviewed and validated.

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.

Feature Request: Support URL rewrite

1 participant