express-openapi-validator
Advanced tools
@@ -17,7 +17,8 @@ "use strict"; | ||
| get request() { | ||
| const { allErrors, allowUnknownQueryParameters, coerceTypes, removeAdditional } = this.options.validateRequests; | ||
| const { allErrors, allowUnknownQueryParameters, coerceTypes, removeAdditional, discriminator } = this.options.validateRequests; | ||
| return Object.assign(Object.assign({}, this.baseOptions()), { allErrors, | ||
| allowUnknownQueryParameters, | ||
| coerceTypes, | ||
| removeAdditional }); | ||
| removeAdditional, | ||
| discriminator }); | ||
| } | ||
@@ -24,0 +25,0 @@ get multipart() { |
@@ -48,2 +48,3 @@ import * as ajv from 'ajv'; | ||
| removeAdditional?: boolean | 'all' | 'failing'; | ||
| discriminator?: boolean; | ||
| }; | ||
@@ -50,0 +51,0 @@ export type ValidateResponseOpts = { |
+2
-2
| { | ||
| "name": "express-openapi-validator", | ||
| "version": "5.5.8", | ||
| "version": "5.6.0", | ||
| "description": "Automatically validate API requests and responses with OpenAPI 3 and Express.", | ||
@@ -40,3 +40,3 @@ "main": "dist/index.js", | ||
| "@apidevtools/json-schema-ref-parser": "^14.0.3", | ||
| "@types/multer": "^1.4.12", | ||
| "@types/multer": "^1.4.13", | ||
| "ajv": "^8.17.1", | ||
@@ -43,0 +43,0 @@ "ajv-draft-04": "^1.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
438710
0.02%7855
0.03%Updated