Skip to content

Commit a2f0dde

Browse files
committed
Dont point outside
1 parent f892515 commit a2f0dde

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

webapp/config/packages/nelmio_api_doc.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ nelmio_api_doc:
5050
description: The ID of the entity to get
5151
required: true
5252
schema:
53+
$ref: "#/components/schemas/Id"
5354
type: string
5455
pattern: "^[A-Za-z0-9]{1,255}$"
5556
maxLength: 255
@@ -74,7 +75,7 @@ nelmio_api_doc:
7475
schema:
7576
type: array
7677
items:
77-
$ref: "#/components/parameters/id"
78+
$ref: "#/components/schemas/Id"
7879
strict:
7980
name: strict
8081
in: query
@@ -102,6 +103,10 @@ nelmio_api_doc:
102103
schema:
103104
type: string
104105
schemas:
106+
Id:
107+
type: string
108+
pattern: "^[A-Za-z0-9]{1,255}$"
109+
maxLength: 255
105110
ImageList:
106111
type: array
107112
items:

0 commit comments

Comments
 (0)