Expand pattern to support use of Jinja2 block delimiters

This commit is contained in:
Philip Douglass
2022-12-15 11:44:14 -05:00
parent ad4e257fdb
commit 51e244e183

View File

@@ -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,
}, },