Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ When renaming a schema name, the old version must continue to exist. Otherwise,

```json
{
"$ref": "https://json.schemastore.org/NEWNAME.json"
"$ref": "https://www.schemastore.org/NEWNAME.json"
}
```

Expand All @@ -218,7 +218,7 @@ The process of renaming schemas is similar to [this section](#how-to-move-a-json
Many tools, such as [validate-pyproject](https://github.com/abravalheri/validate-pyproject), accept passing in subpaths for validation like so:

```sh
validate-pyproject --tool cibuildwheel=https://json.schemastore.org/cibuildwheel.toml#/properties/tool/properties
validate-pyproject --tool cibuildwheel=https://www.schemastore.org/cibuildwheel.toml#/properties/tool/properties
```

This means that renames in subschema paths is a potentially a breaking change. However, it needs to be possible to refactor internal schema structures.
Expand Down Expand Up @@ -409,7 +409,7 @@ When adding glob patterns to `fileMatch` so language servers can auto-apply sche
"name": "Hugo",
"description": "Hugo static site generator config file",
"fileMatch": ["config.toml"], // Avoid generic patterns.
"url": "https://json.schemastore.org/hugo.json",
"url": "https://www.schemastore.org/hugo.json",
}
```

Expand Down Expand Up @@ -560,7 +560,7 @@ If you do not wish to use the `new-schema` task, the manual steps are listed bel
"description": "Schema description",
"fileMatch": ["list of well-known filenames matching schema"],
"name": "Friendly schema name",
"url": "https://json.schemastore.org/<schemaName>.json"
"url": "https://www.schemastore.org/<schemaName>.json"
}
```

Expand All @@ -570,7 +570,7 @@ Finally, validate your changes. See [How to Validate a JSON Schema](#how-to-vali

### How to add a JSON Schema that's self-hosted/remote/external

You may wish to serve a schema from `https://json.schemastore.org/<schemaName>.json`, but keep the content of the schema file at a place you control (not this repository).
You may wish to serve a schema from `https://www.schemastore.org/<schemaName>.json`, but keep the content of the schema file at a place you control (not this repository).

See [this PR](https://github.com/SchemaStore/schemastore/pull/1211/files) as an example. Simply register your schema in the [schema catalog](src/api/json/catalog.json), with the `url` field pointing to your schema file:

Expand Down Expand Up @@ -618,11 +618,11 @@ Then, use the `versions` field to list each of them. Add the latest version to t
"description": "JSON schema for the Agrippa config file",
"fileMatch": [".agripparc.json", "agripparc.json"],
"name": ".agripparc.json",
"url": "https://json.schemastore.org/agripparc-1.4.json",
"url": "https://www.schemastore.org/agripparc-1.4.json",
"versions": {
"1.2": "https://json.schemastore.org/agripparc-1.2.json",
"1.3": "https://json.schemastore.org/agripparc-1.3.json",
"1.4": "https://json.schemastore.org/agripparc-1.4.json"
"1.2": "https://www.schemastore.org/agripparc-1.2.json",
"1.3": "https://www.schemastore.org/agripparc-1.3.json",
"1.4": "https://www.schemastore.org/agripparc-1.4.json"
}
}
```
Expand All @@ -643,7 +643,7 @@ See [this PR](https://github.com/SchemaStore/schemastore/pull/2421/files) for a
- Both schemas must exist [locally](src/schemas/json) in SchemaStore.
- Both schemas must have the same draft (ex. `draft-07`)
- `schema_y.json` must have `id` or `$id` with this value `"https://json.schemastore.org/schema_y.json"`
- In `schema_x.json`, add ref to `schema_y.json`: `"$ref": "https://json.schemastore.org/schema_y.json#..."`
- In `schema_x.json`, add ref to `schema_y.json`: `"$ref": "https://www.schemastore.org/schema_y.json#..."`
- Within [schema-validation.jsonc](./src/schema-validation.jsonc), in `"options": []`, add an entry:
`{ "schema_x.json": {"externalSchema": ["schema_y.json"] } }`
- Note that all transitive schemas must be specified in `externalSchema`
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-xregistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ async function buildXRegistry() {
)
const url = schema.url
console.info(`Determining schema format for ${url}...`)
// Map json.schemastore.org domain to schemastore.org
// Map www.schemastore.org domain to schemastore.org
let domain = extractDomain(url)
if (domain === 'json.schemastore.org') {
if (domain === 'json.schemastore.org' || domain === 'www.schemastore.org') {
domain = 'schemastore.org'
}

Expand Down
2 changes: 1 addition & 1 deletion src/api/json/catalog.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/schema-catalog.json",
"$schema": "https://www.schemastore.org/schema-catalog.json",
"version": 1,
"schemas": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.0.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.0.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.0.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.0.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.0.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.0.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.0.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.0.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.0.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.0.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.1.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.1.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.1.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.1.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.1.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.2.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.2.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.2.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.2.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.2.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.2.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.2.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.2.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.2.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.2.0.json",
"abcMaterialsMap": {},
"analytics": {
"items": [],
Expand Down
7 changes: 5 additions & 2 deletions src/schemas/json/abc-supply-plan-10.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
"description": "Schema defining the structure of ABCSupplyPlan used for managing plan data in ABC-Plan's MasterPlanner.",
"properties": {
"$schema": {
"description": "Link to https://json.schemastore.org/abc-supply-plan-10.0.0.json",
"description": "Link to https://www.schemastore.org/abc-supply-plan-10.0.0.json",
"type": "string",
"enum": ["https://json.schemastore.org/abc-supply-plan-10.0.0.json"]
"enum": [
"https://json.schemastore.org/abc-supply-plan-10.0.0.json",
"https://www.schemastore.org/abc-supply-plan-10.0.0.json"
]
},
"planDate": {
"type": "string",
Expand Down
7 changes: 5 additions & 2 deletions src/schemas/json/abc-supply-plan-10.1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
"description": "Schema defining the structure of ABCSupplyPlan used for managing plan data in ABC-Plan's MasterPlanner.",
"properties": {
"$schema": {
"description": "Link to https://json.schemastore.org/abc-supply-plan-10.1.0.json",
"description": "Link to https://www.schemastore.org/abc-supply-plan-10.1.0.json",
"type": "string",
"enum": ["https://json.schemastore.org/abc-supply-plan-10.1.0.json"]
"enum": [
"https://json.schemastore.org/abc-supply-plan-10.1.0.json",
"https://www.schemastore.org/abc-supply-plan-10.1.0.json"
]
},
"planDate": {
"type": "string",
Expand Down
7 changes: 5 additions & 2 deletions src/schemas/json/abc-supply-plan-11.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
"description": "Schema defining the structure of ABCSupplyPlan used for managing plan data in ABC-Plan's MasterPlanner.",
"properties": {
"$schema": {
"description": "Link to https://json.schemastore.org/abc-supply-plan-11.0.0.json",
"description": "Link to https://www.schemastore.org/abc-supply-plan-11.0.0.json",
"type": "string",
"enum": ["https://json.schemastore.org/abc-supply-plan-11.0.0.json"]
"enum": [
"https://json.schemastore.org/abc-supply-plan-11.0.0.json",
"https://www.schemastore.org/abc-supply-plan-11.0.0.json"
]
},
"planDate": {
"type": "string",
Expand Down
7 changes: 5 additions & 2 deletions src/schemas/json/abc-supply-plan-11.1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
"description": "Schema defining the structure of ABCSupplyPlan used for managing plan data in ABC-Plan's MasterPlanner.",
"properties": {
"$schema": {
"description": "Link to https://json.schemastore.org/abc-supply-plan-11.1.0.json",
"description": "Link to https://www.schemastore.org/abc-supply-plan-11.1.0.json",
"type": "string",
"enum": ["https://json.schemastore.org/abc-supply-plan-11.1.0.json"]
"enum": [
"https://json.schemastore.org/abc-supply-plan-11.1.0.json",
"https://www.schemastore.org/abc-supply-plan-11.1.0.json"
]
},
"planDate": {
"type": "string",
Expand Down
7 changes: 5 additions & 2 deletions src/schemas/json/abc-supply-plan-11.2.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
"description": "Schema defining the structure of ABCSupplyPlan used for managing plan data in ABC-Plan's MasterPlanner.",
"properties": {
"$schema": {
"description": "Link to https://json.schemastore.org/abc-supply-plan-11.2.0.json",
"description": "Link to https://www.schemastore.org/abc-supply-plan-11.2.0.json",
"type": "string",
"enum": ["https://json.schemastore.org/abc-supply-plan-11.2.0.json"]
"enum": [
"https://json.schemastore.org/abc-supply-plan-11.2.0.json",
"https://www.schemastore.org/abc-supply-plan-11.2.0.json"
]
},
"planDate": {
"type": "string",
Expand Down
7 changes: 5 additions & 2 deletions src/schemas/json/schema-catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
"additionalProperties": false,
"properties": {
"$schema": {
"description": "Link to https://json.schemastore.org/schema-catalog.json",
"description": "Link to https://www.schemastore.org/schema-catalog.json",
"type": "string",
"enum": ["https://json.schemastore.org/schema-catalog.json"]
"enum": [
"https://json.schemastore.org/schema-catalog.json",
"https://www.schemastore.org/schema-catalog.json"
]
},
"schemas": {
"type": "array",
Expand Down
2 changes: 1 addition & 1 deletion src/test/abc-supply-plan-10.0.0/abc-supply-plan.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.0.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
2 changes: 1 addition & 1 deletion src/test/abc-supply-plan-10.1.0/abc-supply-plan.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
2 changes: 1 addition & 1 deletion src/test/abc-supply-plan-11.0.0/abc-supply-plan.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.0.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.0.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
2 changes: 1 addition & 1 deletion src/test/abc-supply-plan-11.1.0/abc-supply-plan.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/abc-supply-plan-11.1.0.json",
"$schema": "https://www.schemastore.org/abc-supply-plan-11.1.0.json",
"abcMaterialsMap": {
"1": {
"abcMaterialName": "FDP",
Expand Down
Loading