From 386b460ff42674e171045be8989ab419c85ba09e Mon Sep 17 00:00:00 2001 From: Heyward Fann Date: Fri, 5 Feb 2021 16:44:42 +0800 Subject: [PATCH] fix: jsonValidation schema --- src/schemas/extension-package.schema.json | 53 +++++++++-------------- 1 file changed, 20 insertions(+), 33 deletions(-) diff --git a/src/schemas/extension-package.schema.json b/src/schemas/extension-package.schema.json index f741ad8..aa25e2a 100644 --- a/src/schemas/extension-package.schema.json +++ b/src/schemas/extension-package.schema.json @@ -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" } } }