Skip to content
Draft
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
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 === 'www.schemastore.org' || domain === 'json.schemastore.org') {
domain = 'schemastore.org'
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/build_xregistry_site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ docker exec "${CONTAINER_ID}" /xr import -d @/workspace/src/api/registry/registr
echo "Exporting live data to $ARCHIVE_PATH..."
docker exec "${CONTAINER_ID}" /bin/sh -c "
mkdir -p /tmp/live
/xr download --index index.json -s localhost:8080 /tmp/live -u https://json.schemastore.org/api/registry
/xr download --index index.json -s localhost:8080 /tmp/live -u https://www.schemastore.org/api/registry
cd /tmp/live
tar czf $ARCHIVE_PATH .
"
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
2 changes: 1 addition & 1 deletion src/json.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"name": "bower.json",
"description": "Bower package description file",
"fileMatch": [ "bower.json", ".bower.json" ],
"url": "https://json.schemastore.org/bower.json"
"url": "https://www.schemastore.org/bower.json"
}
</pre>
<p>
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"$schema": "https://json.schemastore.org/claude-code-keybindings.json"
"$schema": "https://www.schemastore.org/claude-code-keybindings.json"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/popxf-1.0.json",
"$schema": "https://www.schemastore.org/popxf-1.0.json",
"data": {
"observable_central": {
"('', '')": [0.22729],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/popxf-1.0.json",
"$schema": "https://www.schemastore.org/popxf-1.0.json",
"data": {
"observable_central": {
"('', '', 'RR')": [1.013e-10],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/popxf-1.0.json",
"$schema": "https://www.schemastore.org/popxf-1.0.json",
"data": {
"observable_central": {
"('', '')": [0.22729],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/popxf-1.0.json",
"$schema": "https://www.schemastore.org/popxf-1.0.json",
"data": {
"observable_central": {
"('', '')": [0.227, 0.227, 0.227],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/popxf-1.0.json",
"$schema": "https://www.schemastore.org/popxf-1.0.json",
"data": {
"observable_central": {
"('', '')": 17.5,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/popxf-1.0.json",
"$schema": "https://www.schemastore.org/popxf-1.0.json",
"data": {
"observable_uncertainties": {
"total": {
Expand Down
Loading
Loading