Files
react-native-devtools-frontend/scripts/json_validator/module.schema.json
T
Tim van der Lippe 46e1bcace9 Remove pre_generates_legacy from module.json files
This was a temporary flag used during the build_release_applications
to GN migration.

R=aerotwist@chromium.org

Bug: 1131500
Change-Id: I8a772bcc4bee31dbd3270bf7ef62d8c97941024a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2484716
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-10-19 16:12:09 +00:00

101 lines
2.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"properties": {
"extensions": {
"type": "array",
"description": "Extension points",
"items": {
"properties": {
"type": {"type": "string"},
"order": {"type": "number"},
"title": {"type": "string"},
"options": {
"type": "array",
"items": {
"properties": {
"title": {"type": "string"},
"category": {"type": "string"}
}
}
}
},
"if": {
"properties": {"type": {"const": "action"}}
},
"then": {
"properties": {
"bindings": {
"type": "array",
"items": {
"required": ["shortcut"],
"properties": {
"shortcut": {
"type": "string",
"pattern": "^[\\S]+(\\s[\\S]+)?$"
},
"platform": {"type": "string"},
"keybindSets": {
"type": "array",
"items": {
"type": "string",
"enum": ["devToolsDefault", "vsCode"]
}
}
}
}
}
},
"anyOf": [
{
"required": ["title"]
},
{
"required": ["options"],
"properties": {
"options": {
"minItems": 1,
"items": {
"required": ["title"]
}
}
}
}
],
"required": ["category"]
}
}
},
"dependencies": {
"type": "array",
"items": {
"type": "string"
}
},
"modules": {
"type": "array",
"items": {
"type": "string"
}
},
"resources": {
"type": "array",
"items": {
"type": "string"
}
},
"skip_compilation": {
"type": "array",
"items": {
"type": "string"
}
},
"experiment": {
"type": "string"
}
},
"definitions": {
}
}