new module:ParameterValidator()
ParameterValidator
PropertiesName | Type | Description |
---|---|---|
parametersDefinition | Array.<Object> | openapi parameters definition |
requestBodyDefinition | Object | openapi body definition |
- Source
- See
- https://swagger.io/docs/specification/describing-parameters/ - for parametersDefinition
- https://swagger.io/docs/specification/describing-request-body/ - for requestBodyDefinition
Methods
test(path, qs, requestBody)
test an incoming request against the current instance of ParameterValidator
Parameters:
Name | Type | Description |
---|---|---|
path | Map.<string, any> | |
qs | Map.<string, any> | |
requestBody | Map.<string, any> |
- Source
Throws:
module:ParameterError