module:ParameterValidator

new module:ParameterValidator()

ParameterValidator
Properties
NameTypeDescription
parametersDefinitionArray.<Object>openapi parameters definition
requestBodyDefinitionObjectopenapi body definition

Methods

test(path, qs, requestBody)

test an incoming request against the current instance of ParameterValidator
Parameters:
NameTypeDescription
pathMap.<string, any>
qsMap.<string, any>
requestBodyMap.<string, any>
Throws:
module:ParameterError