1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-08 16:46:04 +02:00

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
}