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** `additionalProperties` only works on the top object in the schema. All `additionalProperties` in the children object will be ignored. **To Reproduce** If I have the following schema,...

**Is your feature request related to a problem? Please describe.** I have many routes grouped by some resources and I can't neither split YAML-file nor use a merged JS configuration...

Hello, **Describe the bug** I have enjoyed express-openapi-validator and would like to implement on a koa_based api server as well. But seems report an error when following the instruction as...

`apiSpec` arg of OpenApiValidator.middleware() type is also `OpenAPIV3.Document`, but it is not exported type. I'd like to use `OpenAPIV3` document type on my application code as follows. Would it be...

**Describe the bug** This is accepted as valid spec and will allow any array: ``` schema: { type: "array", additionalProperties: true, }, ``` **To Reproduce** Load up an OpenAPI spec...

**Is your feature request related to a problem? Please describe.** The express docs recommend saving authentication state on res.locals (https://expressjs.com/en/api.html#res.locals). The express TypeScript types are also setup to allow custom...

**Describe the bug** In the example given for [custom operation resolver](https://github.com/cdimascio/express-openapi-validator/tree/master/examples/5-custom-operation-resolver#example-express-api-server-with-custom-operation-resolver), we can read: ```javascript new OpenApiValidator({ apiSpec, operationHandlers: { basePath: path.join(__dirname, 'routes'), resolver: (basePath, route) => { // Pluck...

**Is your feature request related to a problem? Please describe.** I'm not able to throw custom errors in `validateSecurity` and handle them after that. I can see you are mapping...

enhancement

I'm using a framework (AWS API gateway) that isn't one that is supported directly, and while I'm not asking for that framework to be supported, there is a lot of...

**Describe the bug** The middlewares when not being used are still imported into memory and unnecessarily take up time loading. **Expected behavior** Only the middlewares that are going to be...