Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: jsonValidation schema #39

Merged
merged 1 commit into from
Feb 6, 2021
Merged
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
fix: jsonValidation schema
  • Loading branch information
fannheyward committed Feb 5, 2021
commit 386b460ff42674e171045be8989ab419c85ba09e
53 changes: 20 additions & 33 deletions src/schemas/extension-package.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,46 +198,33 @@
},
"jsonValidation": {
"type": "array",
"description": "Contributes json schema configuration.",
"items": {
"description": "Contributes json schema configuration.",
"type": "array",
"type": "object",
"defaultSnippets": [
{
"body": [
{
"fileMatch": "${1:file.json}",
"url": "${2:url}"
}
]
"body": {
"fileMatch": "${1:file.json}",
"url": "${2:url}"
}
}
],
"items": {
"type": "object",
"defaultSnippets": [
{
"body": {
"fileMatch": "${1:file.json}",
"url": "${2:url}"
}
}
],
"properties": {
"fileMatch": {
"properties": {
"fileMatch": {
"type": [
"string",
"array"
],
"description": "The file pattern (or an array of patterns) to match, for example 'package.json' or '*.launch'. Exclusion patterns start with '!'",
"items": {
"type": [
"string",
"array"
],
"description": "The file pattern (or an array of patterns) to match, for example 'package.json' or '*.launch'. Exclusion patterns start with '!'",
"items": {
"type": [
"string"
]
}
},
"url": {
"description": "A schema URL ('http:', 'https:') or relative path to the extension folder ('./').",
"type": "string"
"string"
]
}
},
"url": {
"description": "A schema URL ('http:', 'https:') or relative path to the extension folder ('./').",
"type": "string"
}
}
}
Expand Down