Skip to content

Commit 45bd13e

Browse files
committed
Introduce an enum-based schema into the petstore example
1 parent d791c7b commit 45bd13e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

example/source/pets.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,19 @@ components:
9393
type: string
9494
tag:
9595
type: string
96+
status:
97+
$ref: "#/components/schemas/PetStatus"
9698
Pets:
9799
type: array
98100
items:
99101
$ref: "#/components/schemas/Pet"
102+
PetStatus:
103+
type: string
104+
description: pet status in the store
105+
enum:
106+
- pending
107+
- available
108+
- sold
100109
Error:
101110
required:
102111
- code

0 commit comments

Comments
 (0)