Files
react-native-devtools-frontend/scripts/json_validator/module.schema.json
T
Jack Lynch 9e74255c7e Update module.schema.json and add missing action titles
A previous CL [1] added titles to most actions but missed several. This
CL rectifies that and updates the schema to require actions for titles.

[1] https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2085476

Bug: 174309
Change-Id: Ie1a3226450a903c6ac3344ddad424e9a187ef3a8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2091055
Reviewed-by: Brian Cui <brcui@microsoft.com>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
2020-03-09 18:08:38 +00:00

83 lines
1.6 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"}
}
}
}
},
"if": {
"properties": {"type": {"const": "action"}}
},
"then": {
"anyOf": [
{
"required": ["title"]
},
{
"required": ["options"],
"properties": {
"options": {
"minItems": 1,
"items": {
"required": ["title"]
}
}
}
}
]
}
}
},
"dependencies": {
"type": "array",
"items": {
"type": "string"
}
},
"scripts": {
"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": {
}
}