Fix JSON schema validation to match full function names

This commit is contained in:
Andrea Cardaci 2020-05-13 19:36:59 +02:00
parent 3d9370b1e4
commit 4e4b61a65a

View File

@ -33,7 +33,7 @@ def build_schema():
'functions': {
'type': 'object',
"patternProperties": {
'|'.join(function_names): {'$ref': '#/definitions/examples'}
'^({})$'.format('|'.join(function_names)): {'$ref': '#/definitions/examples'}
},
'additionalProperties': False
}