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 215 express-openapi-validator issues
Sort by recently updated
recently updated
newest added

**Describe the bug** Invalid example for NestJS https://github.com/cdimascio/express-openapi-validator/tree/master/examples/9-nestjs **To Reproduce** 1. Clone repository. 2. Install dependencies 'npm ci' 3. Notice that response validation is turned on [https://github.com/cdimascio/express-openapi-validator/blob/master/examples/9-nestjs/src/app.module.ts#L22](https://github.com/cdimascio/express-openapi-validator/blob/master/examples/9-nestjs/src/app.module.ts#L22) 4. Go to...

**Describe the bug** When using a schema that has `additionalProperties` set to some type, and when then returning an object that has an additional property set to `undefined`, the response...

**Is your feature request related to a problem? Please describe.** It can be risky to activate API validation on existing APIs and it would be nice to have a "warningMode:...

## 🐸 Problem to Solve The middleware may be instantiated with a `string` (path-on-disk to schema document) or with an object literal of the schema. In Typescript, it is possible...

**Describe the bug** Invalid openAPIV3 spec document when building with parameters, invalidates the entire document. (doesn't happen with query variables, only path parameters) **To Reproduce** Add a query parameter. **Actual...

Using version `^5.0.4` **Describe the bug** File upload is failing and throws an error: ``` Error: Unexpected end of form at Multipart._final (/var/local/acp/dashboards/node_modules/busboy/lib/types/multipart.js:588:17) at callFinal (node:internal/streams/writable:698:12) at prefinish (node:internal/streams/writable:710:7) at...

**Describe the bug** Using content.application/json to describe a JSON object within a query string just gives "must be object" error, even with swagger ui **To Reproduce** Have the following or...

**Describe the bug** When I allow only 200 response code with application/json content, any response code is allowed if I set the response body as a string in my code....

**Is your feature request related to a problem? Please describe.** I was really excited to find this package and tried it in a few projects. We wanted to use it...

**Describe the bug** From my understanding of the documentation, the coerceTypes option is set to 'true' by default. However, I am unable to modify this setting to other options, such...