mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 03:30:02 -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': {
|
||||
'type': 'object',
|
||||
'patternProperties': {
|
||||
# http://docs.ansible.com/ansible/playbooks_variables.html#what-makes-a-valid-variable-name
|
||||
'^[a-zA-Z_]+[a-zA-Z0-9_]*$': {'type': 'string'},
|
||||
r'^(?:(?:{{[^{}]*?}})|(?:[a-zA-Z_]+[a-zA-Z0-9_]*)+)+$': {"anyOf": [{'type': 'string'}, {'$ref': '#/properties/extra_vars'}]}
|
||||
},
|
||||
'additionalProperties': False,
|
||||
},
|
||||
},
|
||||
'additionalProperties': False,
|
||||
}
|
||||
|
||||
def validate_env_var_allowed(self, env_var):
|
||||
|
||||
Reference in New Issue
Block a user