Add backwards compatibility for injecting single file

This commit is contained in:
Jim Ladd
2017-11-21 11:00:31 -05:00
parent 286a70f2ca
commit 7aa1ae69b3
2 changed files with 10 additions and 5 deletions

View File

@@ -696,7 +696,7 @@ class CredentialTypeInjectorField(JSONSchemaField):
'file': {
'type': 'object',
'patternProperties': {
'^template\.[a-zA-Z_]+$': {'type': 'string'},
'^template(\.[a-zA-Z_]+)?$': {'type': 'string'},
},
'additionalProperties': False,
},