SchemaStore / SchemaStore/schemastore

Cannot access remote schemas via https://json.schemastore.org/<schemaName>.json

Open
#4,838 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Web Server
Dominant language
JavaScript
Stars
3.8k
Forks
2.3k
Avg merge
20h 23m
Merged PRs (30d)
124

Description

Area with issue?

JSON Schema

✔️ Expected Behavior

According to the contribution guide, it should be possible to access remote schemas via
https://json.schemastore.org/<schemaName>.json

https://github.com/SchemaStore/schemastore/blob/master/CONTRIBUTING.md#how-to-add-a-json-schema-thats-self-hostedremoteexternal

❌ Actual Behavior

I want to fetch the angular.json schema which has this catalog entry

  {
    "name": "angular.json",
    "description": "Angular configuration file",
    "fileMatch": ["angular.json"],
    "url": "https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular/cli/lib/config/workspace-schema.json"
  }

When I visit any of these URLs, I get a 404 not found error:

https://json.schemastore.org/angular.json
https://json.schemastore.org/angular.json.json
https://schemastore.org/json/angular.json

JSON, YAML, or TOML file that does not work.

I need to manually insert the URL of the schema in my JSON files using the $schema attribute. I prefer to specify the official schema store page rather than the URL of the remote repository because it is long, hard to read, and may break in the future without notice.

IDE or code editor.

None

Are you making a PR for this?

No, someone else must create the PR.

Contributor guide

Open the contributing guide

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.

Research direction

Start with the CONTRIBUTING.md section on self-hosted or remote schemas and the catalog entry in src/api/json/catalog.json for angular.json. Trace how the json.schemastore.org and schemastore.org URLs are served, then verify that the documented URL resolves to the cataloged schema and no longer returns 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, json
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.