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

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

Description

Web Server
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.

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.