mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 17:28:51 -03:30
Add recursive properties to injectors jsonschema for extra_vars
This commit is contained in:
@@ -790,13 +790,11 @@ class CredentialTypeInjectorField(JSONSchemaField):
|
|||||||
'extra_vars': {
|
'extra_vars': {
|
||||||
'type': 'object',
|
'type': 'object',
|
||||||
'patternProperties': {
|
'patternProperties': {
|
||||||
# http://docs.ansible.com/ansible/playbooks_variables.html#what-makes-a-valid-variable-name
|
r'^(?:(?:{{[^{}]*?}})|(?:[a-zA-Z_]+[a-zA-Z0-9_]*)+)+$': {"anyOf": [{'type': 'string'}, {'$ref': '#/properties/extra_vars'}]}
|
||||||
'^[a-zA-Z_]+[a-zA-Z0-9_]*$': {'type': 'string'},
|
|
||||||
},
|
},
|
||||||
'additionalProperties': False,
|
'additionalProperties': False,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'additionalProperties': False,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def validate_env_var_allowed(self, env_var):
|
def validate_env_var_allowed(self, env_var):
|
||||||
|
|||||||
Reference in New Issue
Block a user