Skip to content

Commit

Permalink
Update schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Jan 29, 2025
1 parent 8dab226 commit 06299a2
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 50 deletions.
44 changes: 21 additions & 23 deletions schemas/central/webext.json
Original file line number Diff line number Diff line change
Expand Up @@ -13423,6 +13423,7 @@
},
"name": {
"type": "string",
"description": "Name must be at least 2, at should be at most 75 characters",
"optional": false,
"preprocess": "localize"
},
Expand Down Expand Up @@ -13521,24 +13522,16 @@
{
"type": "object",
"properties": {
"page": {
"service_worker": {
"optional": true,
"$ref": "ExtensionURL"
},
"persistent": {
"page": {
"optional": true,
"type": "boolean",
"max_manifest_version": 2,
"default": true
}
},
"additionalProperties": {
"$ref": "UnrecognizedProperty"
}
},
{
"type": "object",
"properties": {
"$ref": "ExtensionURL"
},
"scripts": {
"optional": true,
"type": "array",
"items": {
"$ref": "ExtensionURL"
Expand All @@ -13547,6 +13540,7 @@
"type": {
"optional": true,
"type": "string",
"description": "Only supported for page/scripts; not for service_worker yet, see bug 1775574",
"enum": [
"module",
"classic"
Expand All @@ -13557,20 +13551,24 @@
"type": "boolean",
"max_manifest_version": 2,
"default": true
},
"preferred_environment": {
"optional": true,
"type": "array",
"items": {
"type": "string",
"enum": [
"service_worker",
"document"
],
"onError": "warn"
}
}
},
"additionalProperties": {
"$ref": "UnrecognizedProperty"
}
},
{
"type": "object",
"properties": {
"service_worker": {
"$ref": "ExtensionURL"
}
},
"postprocess": "requireBackgroundServiceWorkerEnabled"
"postprocess": "checkRequiredManifestBackgroundKeys"
}
],
"optional": true
Expand Down
Loading

0 comments on commit 06299a2

Please sign in to comment.