mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Fix JSON schema validation to match full function names
This commit is contained in:
parent
3d9370b1e4
commit
4e4b61a65a
@ -33,7 +33,7 @@ def build_schema():
|
|||||||
'functions': {
|
'functions': {
|
||||||
'type': 'object',
|
'type': 'object',
|
||||||
"patternProperties": {
|
"patternProperties": {
|
||||||
'|'.join(function_names): {'$ref': '#/definitions/examples'}
|
'^({})$'.format('|'.join(function_names)): {'$ref': '#/definitions/examples'}
|
||||||
},
|
},
|
||||||
'additionalProperties': False
|
'additionalProperties': False
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user