From 80c0e2d72aa5a76781bd4fd237b2d88ae316f141 Mon Sep 17 00:00:00 2001 From: Puru Vijay Date: Wed, 7 Aug 2024 18:19:21 +0530 Subject: [PATCH] Push --- package.json | 2 +- src/oas3/parameterParsers/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4f8fc95..78a4ebc 100644 --- a/package.json +++ b/package.json @@ -84,10 +84,10 @@ "json-ptr": "^3.0.1", "json-schema-traverse": "^1.0.0", "lodash": "^4.17.11", + "neoqs": "^6.12.4", "openapi3-ts": "^3.1.1", "promise-breaker": "^6.0.0", "pump": "^3.0.0", - "qs": "^6.6.0", "raw-body": "^2.3.3", "semver": "^7.0.0" }, diff --git a/src/oas3/parameterParsers/index.ts b/src/oas3/parameterParsers/index.ts index d9c448d..6dd3674 100644 --- a/src/oas3/parameterParsers/index.ts +++ b/src/oas3/parameterParsers/index.ts @@ -1,6 +1,6 @@ import ld from 'lodash'; import querystring from 'querystring'; -import qs from 'qs'; +import { parse } from 'neoqs/legacy'; import { ParametersMap, ParameterLocation } from '../../types'; import { ValidationError } from '../../errors'; @@ -143,7 +143,7 @@ function deepObjectParser( parserContext: any ): any { if (!parserContext.qsParsed) { - parserContext.qsParsed = qs.parse(rawValue); + parserContext.qsParsed = parse(rawValue); } const qsParsed = parserContext.qsParsed; return qsParsed[location.name];