express-openapi-validator icon indicating copy to clipboard operation
express-openapi-validator copied to clipboard

🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification

Results 238 express-openapi-validator issues
Sort by recently updated
recently updated
newest added

**Describe the bug** when using readOnly:true inside a $ref: then the readOnly:true attribute is ignored (i.e. the attribute is enforced for post/put requests) **To Reproduce** Have a required attribute that...

**Is your feature request related to a problem? Please describe.** Yes, I have a schema that has cyclical references and because of this two things are happening with the current...

Add option to disable headers validation. **Additional context** Sometime we want to allow calling an api with Authorization Basic + custom header, or alternatively with Authorization Bearer only. This currently...

This commit fixes a problem with non primitives values in multipart/form-data field(s).

**Describe the bug** Right now if you define a route that does not have the `additionalProperties` key defined, the middleware will allow random properties to be sent to the route....

I'm trying to upload an image encoded as base64: ``` yaml requestBody: content: image/jpeg: schema: type: string format: base64 ``` But I get the following error: ``` console error: unknown...

**Describe the bug** A route like `/v1/resource/{id}:setToDefault`, which is valid against the openapi spec, causes the validator to return a 405 error. **To Reproduce** Using version 4.13.4 of this library...

Given a route specification with the following request body: ``` yaml requestBody: required: true content: multipart/form-data: schema: type: object` required: - image - json properties: image: type: string format: binary...

Hello , from the below APiSpec 3.0 ( myapi.yaml) ``` post: ... requestBody: content: multipart/form-data: schema: type: object properties: contract: description: use a Contract template object $ref: '#/components/schemas/Contract' contractors: type:...

Checking for number type reports an error stating .response.arr[0].abc should be number Steps to reproduce the behavior. 1. Define a table in MySQL with one column as DECIMAL. 2. When...