Skip to content
Merged
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
24 changes: 12 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,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 @@ -219,7 +219,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 @@ -410,7 +410,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 @@ -540,7 +540,7 @@ If you do not wish to use the `new-schema` task, the manual steps are listed bel

```json
{
"$id": "https://json.schemastore.org/<schemaName>.json",
"$id": "https://www.schemastore.org/<schemaName>.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": true,
"properties": {},
Expand All @@ -561,7 +561,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 @@ -571,7 +571,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 @@ -619,11 +619,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,8 +643,8 @@ 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#..."`
- `schema_y.json` must have `id` or `$id` with this value `"https://www.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
2 changes: 1 addition & 1 deletion src/test/aspire-8.0/Nats.3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/aspire-8.0.json",
"$schema": "https://www.schemastore.org/aspire-8.0.json",
"resources": {
"api": {
"bindings": {
Expand Down
2 changes: 1 addition & 1 deletion src/test/aspire-8.0/OracleEndToEnd.2.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/aspire-8.0.json",
"$schema": "https://www.schemastore.org/aspire-8.0.json",
"resources": {
"FREEPDB1": {
"connectionString": "{oracle.connectionString}/FREEPDB1",
Expand Down
2 changes: 1 addition & 1 deletion src/test/aspire-8.0/TestShop.3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/aspire-8.0.json",
"$schema": "https://www.schemastore.org/aspire-8.0.json",
"resources": {
"apigateway": {
"args": ["/app/yarp.dll"],
Expand Down
2 changes: 1 addition & 1 deletion src/test/claude-code-keybindings/with-schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$docs": "https://code.claude.com/docs/en/keybindings",
"$schema": "https://json.schemastore.org/claude-code-keybindings.json",
"$schema": "https://www.schemastore.org/claude-code-keybindings.json",
"bindings": [
{
"bindings": {
Expand Down
2 changes: 1 addition & 1 deletion src/test/claude-code-marketplace/minimal.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/claude-code-marketplace.json",
"$schema": "https://www.schemastore.org/claude-code-marketplace.json",
"description": "Example marketplace",
"name": "example-marketplace",
"owner": { "name": "Example Owner" },
Expand Down
2 changes: 1 addition & 1 deletion src/test/claude-code-plugin-manifest/minimal.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
"$schema": "https://www.schemastore.org/claude-code-plugin-manifest.json",
"author": { "name": "Example Author" },
"description": "Example plugin",
"name": "example-plugin",
Expand Down
2 changes: 1 addition & 1 deletion src/test/claude-code-settings/enum-coverage.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"$schema": "https://www.schemastore.org/claude-code-settings.json",
"channelsEnabled": false,
"defaultShell": "bash",
"effortLevel": "xhigh",
Expand Down
2 changes: 1 addition & 1 deletion src/test/claude-code-settings/modern-complete-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"$schema": "https://www.schemastore.org/claude-code-settings.json",
"agent": "code-reviewer",
"allowManagedHooksOnly": false,
"allowManagedPermissionRulesOnly": false,
Expand Down
Loading