From fb53c1db4fbd401f2454c09f4f739cadf38fb4e0 Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Tue, 26 Nov 2019 22:11:28 -0500 Subject: [PATCH] change let to const --- src/middlewares/openapi.request.validator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewares/openapi.request.validator.ts b/src/middlewares/openapi.request.validator.ts index 543a3eb2..515874ac 100644 --- a/src/middlewares/openapi.request.validator.ts +++ b/src/middlewares/openapi.request.validator.ts @@ -242,7 +242,7 @@ export class RequestValidator { throw validationError(415, path, msg); } - let bodyContentSchema = + const bodyContentSchema = requestBody.content[contentType.contentType] && requestBody.content[contentType.contentType].schema; if (bodyContentSchema && '$ref' in bodyContentSchema) {