mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Expand pattern to support use of Jinja2 block delimiters
This commit is contained in:
@@ -790,7 +790,7 @@ class CredentialTypeInjectorField(JSONSchemaField):
|
|||||||
'extra_vars': {
|
'extra_vars': {
|
||||||
'type': 'object',
|
'type': 'object',
|
||||||
'patternProperties': {
|
'patternProperties': {
|
||||||
r'^(?:(?:{{[^{}]*?}})|(?:[a-zA-Z_]+[a-zA-Z0-9_]*)+)+$': {"anyOf": [{'type': 'string'}, {'$ref': '#/properties/extra_vars'}]}
|
r'^(?:(?:{(?:{|%)[^{}]*?(?:%|})})|(?:[a-zA-Z_]+[a-zA-Z0-9_]*)+)+$': {"anyOf": [{'type': 'string'}, {'$ref': '#/properties/extra_vars'}]}
|
||||||
},
|
},
|
||||||
'additionalProperties': False,
|
'additionalProperties': False,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user