Skip to content

Commit 57a5590

Browse files
committed
(GH-154) Use hosted JSON schema files
The JSON schema files for metadata.json and tasks are now available as files on the forge. This commit changes the JSON validators to use those instead of locally vendored files.
1 parent 7e2b241 commit 57a5590

File tree

2 files changed

+6
-175
lines changed

2 files changed

+6
-175
lines changed

client/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@
6868
],
6969
"jsonValidation": [
7070
{
71-
"fileMatch": "metadata.json",
72-
"url": "./schemas/metadata-json-schema.json"
71+
"fileMatch": "/metadata.json",
72+
"url": "https://forgeapi.puppet.com/schemas/module.json"
73+
},
74+
{
75+
"fileMatch": "tasks/*.json",
76+
"url": "https://forgeapi.puppet.com/schemas/task.json"
7377
}
7478
],
7579
"grammars": [

client/schemas/metadata-json-schema.json

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)