Skip to content

Commit 38274bb

Browse files
committed
Dont point outside
1 parent a053493 commit 38274bb

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
@@ -51,6 +51,7 @@ nelmio_api_doc:
5151
description: The ID of the entity
5252
required: true
5353
schema:
54+
$ref: "#/components/schemas/Id"
5455
type: string
5556
pattern: "^[A-Za-z0-9]{1,255}$"
5657
maxLength: 255
@@ -75,7 +76,7 @@ nelmio_api_doc:
7576
schema:
7677
type: array
7778
items:
78-
$ref: "#/components/parameters/id"
79+
$ref: "#/components/schemas/Id"
7980
strict:
8081
name: strict
8182
in: query
@@ -103,6 +104,10 @@ nelmio_api_doc:
103104
schema:
104105
type: string
105106
schemas:
107+
Id:
108+
type: string
109+
pattern: "^[A-Za-z0-9]{1,255}$"
110+
maxLength: 255
106111
ImageList:
107112
type: array
108113
items:

0 commit comments

Comments
 (0)