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
1 change: 0 additions & 1 deletion src/schema-validation.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@
"vtesttree-schema-v2.2.0.json",
"vtesttree-schema-v2.3.0.json",
"vtesttree-schema-v2.4.0.json",
"web-types.json",
"webextension.json",
"webjob-publish-settings.json",
"winget-pkgs-singleton-0.1.json",
Expand Down
75 changes: 38 additions & 37 deletions src/schemas/json/web-types.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://json.schemastore.org/web-types.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/web-types.json",
"title": "JSON schema for Web-Types",
"type": "object",
"properties": {
Expand Down Expand Up @@ -66,7 +66,7 @@
"js-types-syntax": {
"description": "Language in which JavaScript objects types are specified.",
"type": "string",
"enum": ["typescript"]
"const": "typescript"
},
"description-markup": {
"description": "Markup language in which descriptions are formatted.",
Expand Down Expand Up @@ -394,29 +394,21 @@
}
},
"typed-contribution": {
"$ref": "#/definitions/base-contribution",
"type": "object",
"description": "The base for any contribution, which can possibly have a JS type.",
"javaAbstract": true,
"allOf": [
{
"$ref": "#/definitions/base-contribution"
}
],
"properties": {
"type": {
"$ref": "#/definitions/type-list"
}
}
},
"generic-contribution": {
"$ref": "#/definitions/typed-contribution",
"type": "object",
"description": "A generic contribution. All contributions are of this type, except for HTML attributes and elements, as well as predefined CSS contribution kinds.",
"javaAbstract": true,
"allOf": [
{
"$ref": "#/definitions/typed-contribution"
}
],
"properties": {
"default": {
"$ref": "#/definitions/default"
Expand Down Expand Up @@ -750,7 +742,14 @@
},
"deprecated": {
"description": "Specifies whether the symbol is deprecated. Deprecated symbol usage is discouraged, but still supported. Value can be a boolean or a string message with explanation and migration information.",
"type": ["boolean", "string"],
"anyOf": [
{
"type": "boolean"
},
{
"type": "string"
}
],
"default": false
},
"deprecated-since": {
Expand All @@ -759,7 +758,14 @@
},
"obsolete": {
"description": "Specifies whether the symbol is obsolete. Obsolete symbols are no longer supported. Value can be a boolean or a string message with explanation and migration information.",
"type": ["boolean", "string"],
"anyOf": [
{
"type": "boolean"
},
{
"type": "string"
}
],
"default": false
},
"obsolete-since": {
Expand All @@ -768,7 +774,14 @@
},
"experimental": {
"description": "Specifies whether the symbol is experimental. Value can be a boolean or a string message with explanation. Experimental symbols should be used with caution as the API might change.",
"type": ["boolean", "string"],
"anyOf": [
{
"type": "boolean"
},
{
"type": "string"
}
],
"default": false
},
"pattern": {
Expand Down Expand Up @@ -820,7 +833,7 @@
}
},
"patternProperties": {
"^(?!pattern$).*$": {
"^(?!pattern|elements|attributes|events)$": {
"$ref": "#/definitions/generic-html-contributions"
}
}
Expand Down Expand Up @@ -868,13 +881,9 @@
]
},
"html": {
"$ref": "#/definitions/html-contributions-host",
"type": "object",
"description": "Contains contributions to HTML namespace. It's property names represent symbol kinds, its property values contain list of contributions of particular kind. There are 2 predefined kinds, which integrate directly with IDE - HTML elements and HTML attributes. There are also 2 deprecated kinds: tags (which is equivalent to 'elements') and 'events' (which was moved to JS namespace)",
"allOf": [
{
"$ref": "#/definitions/html-contributions-host"
}
],
"properties": {
"types-syntax": {
"$ref": "#/definitions/deprecated-types-syntax"
Expand Down Expand Up @@ -1004,7 +1013,7 @@
}
},
"patternProperties": {
"^(?!pattern$).*$": {
"^(?!pattern|properties|pseudo-elements|pseudo-classes|functions|classes|parts)$": {
"$ref": "#/definitions/generic-css-contributions"
}
}
Expand Down Expand Up @@ -1052,13 +1061,9 @@
]
},
"css": {
"$ref": "#/definitions/css-contributions-host",
"type": "object",
"description": "Contains contributions to CSS namespace. It's property names represent symbol kinds, its property values contain list of contributions of particular kind. There are predefined kinds, which integrate directly with IDE - properties, classes, functions, pseudo-elements, pseudo-classes and parts.",
"allOf": [
{
"$ref": "#/definitions/css-contributions-host"
}
]
"description": "Contains contributions to CSS namespace. It's property names represent symbol kinds, its property values contain list of contributions of particular kind. There are predefined kinds, which integrate directly with IDE - properties, classes, functions, pseudo-elements, pseudo-classes and parts."
},
"css-property": {
"type": "object",
Expand Down Expand Up @@ -1152,7 +1157,7 @@
}
},
"patternProperties": {
"^(?!pattern$).*$": {
"^(?!pattern|events|properties|symbols)$": {
"$ref": "#/definitions/generic-js-contributions"
}
}
Expand Down Expand Up @@ -1219,19 +1224,15 @@
}
},
"patternProperties": {
"^(?!pattern$).*$": {
"^(?!pattern|events|symbols)$": {
"$ref": "#/definitions/generic-js-contributions"
}
}
},
"js": {
"$ref": "#/definitions/js-contributions-host",
"type": "object",
"description": "Contains contributions to JS namespace. It's property names represent symbol kinds, its property values contain list of contributions of particular kind. There are 2 predefined kinds, which integrate directly with IDE - properties and events.",
"allOf": [
{
"$ref": "#/definitions/js-contributions-host"
}
]
"description": "Contains contributions to JS namespace. It's property names represent symbol kinds, its property values contain list of contributions of particular kind. There are 2 predefined kinds, which integrate directly with IDE - properties and events."
},
"js-property": {
"type": "object",
Expand Down
Loading