Skip to content

Commit afb2d62

Browse files
authored
Updating yaml with new exampels (#26)
1 parent 565b70a commit afb2d62

File tree

1 file changed

+30
-24
lines changed

1 file changed

+30
-24
lines changed

src/main/resources/petstore.yaml

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ components:
468468
required: true
469469
schema:
470470
$ref: '#/components/schemas/ResourceIdentifier'
471-
example: f2123113-2626-492d-bf73-309a429bf67a
471+
example: 29d3d01f-2afc-47b6-a542-c5f097715fc4
472472
IfMatchHeaderParameter:
473473
name: If-Match
474474
in: header
@@ -489,7 +489,7 @@ components:
489489
required: true
490490
schema:
491491
$ref: '#/components/schemas/Username'
492-
example: john_doe
492+
example: john_doe12
493493
PetStatusParameter:
494494
name: status
495495
in: query
@@ -505,15 +505,15 @@ components:
505505
required: true
506506
schema:
507507
$ref: '#/components/schemas/FullDate'
508-
example: '2021-04-23'
508+
example: '2020-01-01'
509509
ToDateParameter:
510510
name: to_date
511511
in: query
512512
description: The ending date of the date range across which pet adoptions are searched.
513513
required: true
514514
schema:
515515
$ref: '#/components/schemas/FullDate'
516-
example: '2024-05-23'
516+
example: '2035-01-01'
517517
PetCategoryParameter:
518518
name: pet_category
519519
in: query
@@ -1198,7 +1198,7 @@ components:
11981198
description: 'The person''s [Social Security number](https://en.wikipedia.org/wiki/Social_Security_number)'
11991199
type: string
12001200
pattern: '^\d{3}-\d{2}-\d{4}$'
1201-
example: 123-45-6789
1201+
example: 123-45-2222
12021202
ErrorWrapper:
12031203
description: A top level object for errors.
12041204
type: object
@@ -1849,10 +1849,12 @@ components:
18491849
year: 2021
18501850
month: 4
18511851
day: 12
1852+
dogProperty1:
1853+
value: 'hunting:2'
18521854
dogProperty2:
1853-
value: Something mandatory only dogs have
1855+
value: 'guarding:8'
18541856
dogProperty3:
1855-
value: Something computed as part of adding the dog
1857+
value: 'canine quotient:3'
18561858
status:
18571859
value: AVAILABLE
18581860
UpdateBellaExample:
@@ -1883,6 +1885,7 @@ components:
18831885
birthdate:
18841886
year: 2021
18851887
month: 1
1888+
day: 12
18861889
status:
18871890
value: AVAILABLE
18881891
KittyExample:
@@ -1897,10 +1900,13 @@ components:
18971900
birthdate:
18981901
year: 2021
18991902
month: 1
1903+
day: 12
1904+
catProperty1:
1905+
value: 'extraversion:8'
19001906
catProperty2:
1901-
value: Something computed as part of adding the cat
1907+
value: 'feline quotient:7'
19021908
status:
1903-
value: AVAILABLE
1909+
value: ADOPTED
19041910
UpdateKittyExample:
19051911
description: Updating Kitty's date of birth
19061912
value:
@@ -1914,7 +1920,7 @@ components:
19141920
month: 2
19151921
day: 15
19161922
catProperty2:
1917-
value: Something computed as part of adding the cat
1923+
value: 'feline quotient:7'
19181924
status:
19191925
value: AVAILABLE
19201926
AddCardPaymentExample:
@@ -1989,7 +1995,7 @@ components:
19891995
- firstName: John
19901996
lastName: Doe
19911997
phoneNumber: '+6573437115596'
1992-
ssn: '123-45-6789'
1998+
ssn: '321-45-6789'
19931999
allergies:
19942000
- Shellfish
19952001
- firstName: Amanda
@@ -2006,7 +2012,7 @@ components:
20062012
firstName: John
20072013
lastName: Doe
20082014
phoneNumber: '+6573437115596'
2009-
ssn: '123-45-6789'
2015+
ssn: '123-45-2222'
20102016
username: john_doe12
20112017
email: 'john.doe@petstore.com'
20122018
accountStatus: ACTIVE
@@ -2032,7 +2038,7 @@ components:
20322038
firstName: John
20332039
lastName: Doe
20342040
phoneNumber: '+6573437115596'
2035-
ssn: '123-45-6789'
2041+
ssn: '123-45-2222'
20362042
username: john_doe12
20372043
email: 'john.doe@petstore.com'
20382044
accountStatus: ACTIVE
@@ -2046,7 +2052,7 @@ components:
20462052
firstName: John
20472053
lastName: Doe
20482054
phoneNumber: '+6573437115596'
2049-
ssn: '123-45-6789'
2055+
ssn: '123-45-2222'
20502056
username: john_doe12
20512057
email: 'john.doe@petstore.com'
20522058
accountStatus: ACTIVE
@@ -2061,7 +2067,7 @@ components:
20612067
updated: '2021-06-30T13:18:22Z'
20622068
firstName: John
20632069
lastName: Doe
2064-
ssn: '123-45-6789'
2070+
ssn: '123-45-2222'
20652071
phoneNumber: '+6573454542316'
20662072
username: john_doe12
20672073
email: 'john.doe@petstore.com'
@@ -2074,7 +2080,7 @@ components:
20742080
toDate: '2022-12-31'
20752081
petCategory: DOG
20762082
searchResults:
2077-
- id: 36d3d01f-2afc-47b6-a542-c5f097715f6y
2083+
- id: a5764857-ae35-34dc-8f25-a9c9e73aa898
20782084
created: '2021-06-30T13:18:22Z'
20792085
updated: '2021-06-30T13:18:22Z'
20802086
adoptionDate: '2021-06-30'
@@ -2084,19 +2090,19 @@ components:
20842090
lastName: Smith
20852091
phoneNumber: '+7509287096053'
20862092
ssn: '987-45-1234'
2087-
- id: 49d3d01f-2afc-47b6-a542-c5f097715fpd
2093+
- id: 6b7fcbb7-1441-3c17-8580-7fc490f21e59
20882094
created: '2022-09-01T13:18:22Z'
20892095
updated: '2022-09-01T13:18:22Z'
20902096
adoptionDate: '2022-09-01'
2091-
petId: 9u53d01f-2afc-47b6-a542-c5f0977158h3
2097+
petId: 2384f927-5e2f-3998-8baa-c768616287f5
20922098
owner:
20932099
firstName: Marie
20942100
lastName: Curie
20952101
phoneNumber: '+7509287096222'
20962102
ssn: '686-45-1234'
20972103
SearchEmployeeExample:
20982104
value:
2099-
ssn: '123-45-6789'
2105+
ssn: '123-45-2222'
21002106
AdoptPetExample:
21012107
value:
21022108
petId: 54a96d5f-026b-4f41-853d-fa8a892f743e
@@ -2114,10 +2120,10 @@ components:
21142120
updated: '2022-09-01T13:18:22Z'
21152121
adoptionDate: '2022-09-01'
21162122
owner:
2117-
firstName: Hayden
2118-
lastName: Smith
2119-
phoneNumber: '+7509287096053'
2120-
ssn: '987-45-1234'
2123+
firstName: Jane
2124+
lastName: Doe
2125+
phoneNumber: '+12356789'
2126+
ssn: '555-55-6789'
21212127
UpdateAdoptionExample:
21222128
description: Updating adoption date.
21232129
value:
@@ -2142,4 +2148,4 @@ components:
21422148
firstName: Hayden
21432149
lastName: Smith
21442150
phoneNumber: '+7509287096053'
2145-
ssn: '987-45-1234'
2151+
ssn: '987-45-1234'

0 commit comments

Comments
 (0)