new module:SecurityValidator()
SecurityValidator
PropertiesName | Type | Description |
---|---|---|
securitySchemes | Array.<Object> | openapi parameters definition |
requestBodyDefinition | Object | openapi body definition |
- Source
- See
- https://swagger.io/docs/specification/authentication/ - for securitySchemes
- https://swagger.io/docs/specification/describing-request-body/ - for requestBodyDefinition
Methods
(async) test(header, query) → {Promise.<void>}
Test given header/query input against the instance schema
Parameters:
Name | Type | Description |
---|---|---|
header | object | |
query | object |
- Source
Throws:
Returns:
- Type:
- Promise.<void>