Skip to content

Commit

Permalink
Add JSON schema for extension control
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Jul 12, 2024
1 parent 2b68d7c commit 6264ce5
Showing 1 changed file with 101 additions and 0 deletions.
101 changes: 101 additions & 0 deletions extension-control/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"malicious": {
"type": "array",
"items": {
"type": "string"
}
},
"migrateToPreRelease": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"displayName": {
"type": "string"
},
"migrateStorage": {
"type": "boolean"
},
"engine": {
"type": "string"
}
},
"required": ["id", "displayName"],
"additionalProperties": false
}
},
"deprecated": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "object",
"properties": {
"disallowInstall": {
"type": "boolean"
},
"extension": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"displayName": {
"type": "string"
}
},
"required": ["id", "displayName"],
"additionalProperties": false
},
"settings": {
"type": "array",
"items": {
"type": "string"
}
},
"additionalInfo": {
"type": "string"
}
},
"additionalProperties": false
}
]
}
},
"search": {
"type": "array",
"items": {
"type": "object",
"properties": {
"query": {
"type": "string"
},
"preferredResults": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"extensionsEnabledWithPreRelease": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["malicious"],
"additionalProperties": false
}

0 comments on commit 6264ce5

Please sign in to comment.