Skip to content

Commit

Permalink
Update JSON schema to require status block (#2382)
Browse files Browse the repository at this point in the history
* Modify the schema so webextensions doesn't require status but all other feature categories do.

* Add missing status info for HTMLTableRowElement.
  • Loading branch information
connorshea authored and Elchi3 committed Jul 16, 2018
1 parent e560f2e commit e3aca9d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
5 changes: 5 additions & 0 deletions api/HTMLTableRowElement.json
Expand Up @@ -653,6 +653,11 @@
"webview_android": {
"version_added": true
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
Expand Down
30 changes: 29 additions & 1 deletion schemas/compat-data.schema.json
Expand Up @@ -105,6 +105,22 @@
},

"compat_statement": {
"type": "object",
"properties": {
"description": { "type": "string" },
"mdn_url": {
"type": "string",
"format": "uri",
"pattern": "^https:\/\/developer\\.mozilla\\.org\/docs\/"
},
"support": { "$ref": "#/definitions/support_block" },
"status": { "$ref": "#/definitions/status_block" }
},
"required": ["support", "status"],
"additionalProperties": false
},

"webextensions_compat_statement": {
"type": "object",
"properties": {
"description": { "type": "string" },
Expand All @@ -131,6 +147,17 @@
"additionalProperties": false
},

"webextensions_identifier": {
"type": "object",
"properties": {
"__compat": { "$ref": "#/definitions/webextensions_compat_statement" }
},
"patternProperties":{
"^(?!__compat)[a-zA-Z_0-9-$@]*$" : { "$ref": "#/definitions/webextensions_identifier" }
},
"additionalProperties": false
},

"version_value": {
"allOf": [
{ "type": ["string", "boolean", "null"] },
Expand All @@ -141,7 +168,8 @@

"type": "object",
"patternProperties": {
"^(?!__compat)[a-zA-Z_0-9-$@]*$": { "$ref": "#/definitions/identifier" }
"^(?!__compat)(?!webextensions)[a-zA-Z_0-9-$@]*$": { "$ref": "#/definitions/identifier" },
"^webextensions*$": { "$ref": "#/definitions/webextensions_identifier" }
},
"additionalProperties": false
}

0 comments on commit e3aca9d

Please sign in to comment.