From 38274bbe1e8372ca5d7e2924379f8c864f536f6d Mon Sep 17 00:00:00 2001 From: MCJ Vasseur <14887731+mvr320@users.noreply.github.com> Date: Wed, 17 Nov 2021 11:37:31 +0100 Subject: [PATCH] Dont point outside --- webapp/config/packages/nelmio_api_doc.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/config/packages/nelmio_api_doc.yaml b/webapp/config/packages/nelmio_api_doc.yaml index 3c84d53cac..38b7ad70cb 100644 --- a/webapp/config/packages/nelmio_api_doc.yaml +++ b/webapp/config/packages/nelmio_api_doc.yaml @@ -51,6 +51,7 @@ nelmio_api_doc: description: The ID of the entity required: true schema: + $ref: "#/components/schemas/Id" type: string pattern: "^[A-Za-z0-9]{1,255}$" maxLength: 255 @@ -75,7 +76,7 @@ nelmio_api_doc: schema: type: array items: - $ref: "#/components/parameters/id" + $ref: "#/components/schemas/Id" strict: name: strict in: query @@ -103,6 +104,10 @@ nelmio_api_doc: schema: type: string schemas: + Id: + type: string + pattern: "^[A-Za-z0-9]{1,255}$" + maxLength: 255 ImageList: type: array items: