Skip to content

Instantly share code, notes, and snippets.

@filiptronicek
Last active July 13, 2022 11:13
Show Gist options
  • Save filiptronicek/10f989a14a04d45e6d6c70b02bdf67cd to your computer and use it in GitHub Desktop.
Save filiptronicek/10f989a14a04d45e6d6c70b02bdf67cd to your computer and use it in GitHub Desktop.
JSON schema for `marketplace.json`
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"deprecated": {
"anyOf": [
{
"type": "boolean"
},
{
"additionalProperties": false,
"properties": {
"disallowInstall": {
"type": "boolean"
},
"extension": {
"additionalProperties": false,
"properties": {
"displayName": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"id",
"displayName"
],
"type": "object"
},
"settings": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
]
},
"malicious": {
"items": {
"type": "string"
},
"type": "array"
},
"migrateToPreRelease": {
"additionalProperties": false,
"properties": {
"displayName": {
"type": "string"
},
"engine": {
"type": "string"
},
"id": {
"type": "string"
},
"migrateStorage": {
"type": "boolean"
}
},
"required": [
"id",
"displayName"
],
"type": "object"
}
},
"required": [
"malicious"
],
"type": "object"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment