Skip to content

Commit 61e664a

Browse files
authored
Merge pull request #5 from upsun/feature/yaml-schema-validation
Add Schema validation
2 parents 0aaab12 + c33c49a commit 61e664a

File tree

2 files changed

+53
-30
lines changed

2 files changed

+53
-30
lines changed

package-lock.json

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "upsun",
33
"displayName": "Upsun Integration",
44
"description": "Use Upsun's extension for VS Code to quickly manage your Cloud Application Platform at Upsun",
5-
"version": "0.8.2",
5+
"version": "0.9.0",
66
"preview": true,
77
"author": {
88
"name": "Mickael GAILLARD - Duncan NAVES",
@@ -315,6 +315,28 @@
315315
}
316316
]
317317
}
318+
],
319+
"yamlValidation": [
320+
{
321+
"fileMatch": "**/.upsun/config.yaml",
322+
"url": "https://raw.githubusercontent.com/platformsh/platformify/refs/heads/main/validator/schema/upsun.json"
323+
},
324+
{
325+
"fileMatch": "**/.platform.app.yaml",
326+
"url": "https://raw.githubusercontent.com/platformsh/platformify/refs/heads/main/validator/schema/platformsh.application.json"
327+
},
328+
{
329+
"fileMatch": "**/.platform/applications.yaml",
330+
"url": "https://raw.githubusercontent.com/platformsh/platformify/refs/heads/main/validator/schema/platformsh.application.json"
331+
},
332+
{
333+
"fileMatch": "**/.platform/routes.yaml",
334+
"url": "https://raw.githubusercontent.com/platformsh/platformify/refs/heads/main/validator/schema/platformsh.routes.json"
335+
},
336+
{
337+
"fileMatch": "**/.platform/services.yaml",
338+
"url": "https://raw.githubusercontent.com/platformsh/platformify/refs/heads/main/validator/schema/platformsh.services.json"
339+
}
318340
]
319341
},
320342
"scripts": {
@@ -357,6 +379,7 @@
357379
"js-yaml": "^4.1.0"
358380
},
359381
"extensionDependencies": [
360-
"vscode.git"
382+
"vscode.git",
383+
"redhat.vscode-yaml"
361384
]
362385
}

0 commit comments

Comments
 (0)