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
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const json5State = EditorState.create({
linter(
json5SchemaLinter({
needsRefresh: handleRefresh,
})
}),
),
hoverTooltip(json5SchemaHover()),
json5Language.data.of({
Expand Down Expand Up @@ -247,9 +247,7 @@ schemaSelect!.onchange = async (e) => {
return;
}
// parse the remote schema spec to json
const data = await (
await fetch(`https://json.schemastore.org/${val}`)
).json();
const data = await (await fetch(`https://www.schemastore.org/${val}`)).json();
// this will update the schema state field, in an editor specific way
updateSchema(editor, data);
};
Expand Down
2 changes: 1 addition & 1 deletion dev/geojson.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
}
},
"description": "This object represents a geometry, feature, or collection of features.",
"id": "https://json.schemastore.org/geojson",
"id": "https://www.schemastore.org/geojson",
"oneOf": [
{
"title": "Point",
Expand Down
4 changes: 1 addition & 3 deletions dev/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ const getSchema = async (val: string) => {
return;
}

const data = await (
await fetch(`https://json.schemastore.org/${val}`)
).json();
const data = await (await fetch(`https://www.schemastore.org/${val}`)).json();
schemaCache.set(val, data);
handleSchemaChange(data);
};
Expand Down
12 changes: 6 additions & 6 deletions dev/package.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -727,22 +727,22 @@
"$ref": "#"
},
"eslintConfig": {
"$ref": "https://json.schemastore.org/eslintrc.json"
"$ref": "https://www.schemastore.org/eslintrc.json"
},
"prettier": {
"$ref": "https://json.schemastore.org/prettierrc.json"
"$ref": "https://www.schemastore.org/prettierrc.json"
},
"stylelint": {
"$ref": "https://json.schemastore.org/stylelintrc.json"
"$ref": "https://www.schemastore.org/stylelintrc.json"
},
"ava": {
"$ref": "https://json.schemastore.org/ava.json"
"$ref": "https://www.schemastore.org/ava.json"
},
"release": {
"$ref": "https://json.schemastore.org/semantic-release.json"
"$ref": "https://www.schemastore.org/semantic-release.json"
},
"jscpd": {
"$ref": "https://json.schemastore.org/jscpd.json"
"$ref": "https://www.schemastore.org/jscpd.json"
}
},
"anyOf": [
Expand Down
Loading