File tree Expand file tree Collapse file tree 2 files changed +30
-27
lines changed
openapi_spec_validator/resources/schemas/v3.1
tests/integration/data/v3.1 Expand file tree Collapse file tree 2 files changed +30
-27
lines changed Original file line number Diff line number Diff line change 278
278
"type" : " object" ,
279
279
"patternProperties" : {
280
280
"^/" : {
281
- "$ref" : " #/$defs/path-item"
281
+ "$ref" : " #/$defs/path-item-or-reference "
282
282
}
283
283
},
284
284
"$ref" : " #/$defs/specification-extensions" ,
Original file line number Diff line number Diff line change @@ -55,31 +55,7 @@ paths:
55
55
schema :
56
56
$ref : " #/components/schemas/Error"
57
57
/pets/{petId} :
58
- get :
59
- summary : Info for a specific pet
60
- operationId : showPetById
61
- tags :
62
- - pets
63
- parameters :
64
- - name : petId
65
- in : path
66
- required : true
67
- description : The id of the pet to retrieve
68
- schema :
69
- type : string
70
- responses :
71
- ' 200 ' :
72
- description : Expected response to a valid request
73
- content :
74
- application/json :
75
- schema :
76
- $ref : " #/components/schemas/Pets"
77
- default :
78
- description : unexpected error
79
- content :
80
- application/json :
81
- schema :
82
- $ref : " #/components/schemas/Error"
58
+ $ref : " #/components/pathItems/PetPath"
83
59
components :
84
60
schemas :
85
61
Pet :
@@ -109,4 +85,31 @@ components:
109
85
type : integer
110
86
format : int32
111
87
message :
112
- type : string
88
+ type : string
89
+ pathItems :
90
+ PetPath :
91
+ get :
92
+ summary : Info for a specific pet
93
+ operationId : showPetById
94
+ tags :
95
+ - pets
96
+ parameters :
97
+ - name : petId
98
+ in : path
99
+ required : true
100
+ description : The id of the pet to retrieve
101
+ schema :
102
+ type : string
103
+ responses :
104
+ ' 200 ' :
105
+ description : Expected response to a valid request
106
+ content :
107
+ application/json :
108
+ schema :
109
+ $ref : " #/components/schemas/Pets"
110
+ default :
111
+ description : unexpected error
112
+ content :
113
+ application/json :
114
+ schema :
115
+ $ref : " #/components/schemas/Error"
You can’t perform that action at this time.
0 commit comments