Skip to content

Commit b2a5fba

Browse files
Ian ZelikmanIan Zelikman
Ian Zelikman
authored and
Ian Zelikman
committed
Fix hyphen to underscore
1 parent a6ecb38 commit b2a5fba

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

lessons/lesson-2.04/example.yaml

+20-6
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,23 @@ paths:
3333
description: Returns a list of pets.
3434
schema:
3535
$ref: '#/definitions/Pets'
36-
/pets/{pet-id}:
36+
examples:
37+
application/json:
38+
[
39+
{
40+
id: 12345,
41+
name: "pythagoras",
42+
status: "Adopted"
43+
},
44+
{
45+
id: 98765,
46+
name: "Lassie",
47+
status: "Adopted"
48+
}
49+
]
50+
/pets/{pet_id}:
3751
parameters:
38-
- $ref: '#/parameters/pet-id'
52+
- $ref: '#/parameters/pet_id'
3953
get:
4054
summary: Retrieve pet details
4155
description: Get details of a pet previously registered
@@ -53,11 +67,11 @@ paths:
5367
}
5468

5569
parameters:
56-
pet-id:
57-
name: pet-id
70+
pet_id:
71+
name: pet_id
5872
in: path
5973
description: Pet identifier
60-
type: number
74+
type: integer
6175
required: true
6276
x-example: 42
6377

@@ -67,7 +81,7 @@ definitions:
6781
required: [name, status]
6882
properties:
6983
id:
70-
type: string
84+
type: integer
7185
description: Pet unique id
7286
name:
7387
type: string

0 commit comments

Comments
 (0)