OpenAPI document initial value, will be merged with the result of define
method.
Protected
documentOpenAPI document initial value, will be merged with the result of define
method.
Protected
operationInternal save of original schemas, could be reused for valiation or other usages.
Define an operation for a path, save original schemas and transform the schemas into OpenAPI format.
API endpoint path, used as key in paths object.
HTTP method that this operation is for, will overwrite existing path item if it exists.
Schemas for this operation.
Generated path item object.
Protected
getValidate the data against the defined schemas. Only validate the schema if the key present in the data.
API endpoint path, used as key in paths object.
HTTP method that this operation is for, will overwrite existing path item if it exists.
Data object to be validated. The key is the schema name. If the key is not present in the data, the schema will not be validated.
Options for Ajv instance.
Validation result of each schema.
Create a new instance to define and generate OpenAPI document.