We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4edacd8 commit 86374a3Copy full SHA for 86374a3
src/middlewares/openapi.request.validator.ts
@@ -139,13 +139,12 @@ export class RequestValidator {
139
}
140
req.params = openapi.pathParams ?? req.params;
141
142
-
143
// HACK for express 5, temporarily make req.query mutable
144
const reqQueryDescriptor = Object.getOwnPropertyDescriptor(req, 'query');
145
Object.defineProperty(req, 'query', {
146
writable: true,
147
value: req.query,
148
- })
+ });
149
const schemaProperties = validator.allSchemaProperties;
150
const mutator = new RequestParameterMutator(
151
this.ajv,
0 commit comments