Skip to content

Commit 217dfbb

Browse files
authored
fix: Missing path parameter
1 parent 47f89cb commit 217dfbb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/openapi-fundamentals/v31/chapter-3-examples/design-first-example/design-first-example-openapi.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ paths:
2323
tags:
2424
- GET
2525
- Read
26+
parameters:
27+
- name: petId
28+
description: Unique and immutable identifier for a pet
29+
in: path
30+
required: true
31+
schema:
32+
type: string
2633
responses:
2734
"200":
2835
description: List of pets provided at the Petstore
@@ -134,4 +141,4 @@ components:
134141
description: API key as provided in Petstore portal
135142
type: apiKey
136143
in: header
137-
name: api-key
144+
name: api-key

0 commit comments

Comments
 (0)