Merge pull request #5998 from theotherjimmy/strict-config-schema

Restrict target_overrides usage
pull/5988/merge
Cruz Monrreal 2018-02-02 19:12:44 -06:00 committed by GitHub
commit 3e5fafdca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 6 deletions

View File

@ -29,11 +29,7 @@
"type": "object",
"patternProperties": {
"\\*": {
"type": "object",
"patternProperties": {
".*\\..*": {}
},
"additionalProperties": false
"$ref": "#/target_override_entry"
},
"^\\S+$": {
"$ref": "#/target_override_entry"
@ -69,6 +65,7 @@
},
"config_parameter_short": {
"type": [
"array",
"string",
"integer",
"boolean",
@ -88,7 +85,15 @@
"target_override_entry": {
"type": "object",
"patternProperties": {
"^\\S+$": {}
"^\\S+$": {
"type": [
"array",
"string",
"integer",
"boolean",
"null"
]
}
},
"additionalProperties": false
}