From 4621a0ab846c1abef9d6f980ef0ffaaea4ff8e8c Mon Sep 17 00:00:00 2001 From: Oleksii Date: Mon, 28 Nov 2022 11:14:09 +0000 Subject: [PATCH] fix the security vulnerability for json arrays --- AnswerKingAPI.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/AnswerKingAPI.yml b/AnswerKingAPI.yml index 74e9fbf..4013891 100644 --- a/AnswerKingAPI.yml +++ b/AnswerKingAPI.yml @@ -14,9 +14,12 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/Inventory.Category.Response' + type: object + properties: + items: + type: array + items: + $ref: '#/components/schemas/Inventory.Category.Response' post: tags: - Inventory