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** I'm encountering `can't resolve reference #/components/schemas/ from id` This happens because I have multiple validator for multiple specs. I encounter this issue even if I have marked...

**Describe the bug** Having a query parameter schema like this: ```yaml name: sort example: field: created order: desc in: query style: deepObject required: false schema: type: object required: - field...

**Is your feature request related to a problem? Please describe.** When a request has no handler, the resolver throws a generic Error(). Because I use swagger-codegen to generate a client...

https://github.com/cdimascio/express-openapi-validator/blob/a585ba18ac3f613d2669c3c19dbc0097ca6d9659/src/framework/types.ts#L234-L251 As `line 249` shows, `type` property is always required for `NonArraySchemaObject` however if I'd like to use `oneOf` keyword what value the type property should be? For example: ```js...

This is not a real PR, but I did some work to see what would be needed to upgrade to Open API v3.1 and don't want it to be lost...

**Describe the bug** Under certain conditions involving allOf and discriminator fields, OAS can't be resolved. Describing this is difficult. It's best understood by looking at the examples and work around...

Currently I have to do this: ```ts import type { OpenAPIV3 } from "express-openapi-validator/dist/framework/types"; ``` Looking through the `framework/types.ts` file, it seems many of the types might be useful to...

**Is your feature request related to a problem? Please describe.** I want to validate a req and then do certain steps. Dont want to use middleware directly. **Describe the solution...