Skip to content

Commit 02a8df8

Browse files
authored
Merge pull request #3027 from karenetheridge/ether/pathitem-operations-v3.2
Make PathItem operation properties specific.
2 parents b7cda07 + e4bf4bb commit 02a8df8

File tree

2 files changed

+38
-6
lines changed

2 files changed

+38
-6
lines changed

schemas/v3.1/schema.json

+23-4
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,29 @@
304304
"items": {
305305
"$ref": "#/$defs/parameter-or-reference"
306306
}
307-
}
308-
},
309-
"patternProperties": {
310-
"^(get|put|post|delete|options|head|patch|trace)$": {
307+
},
308+
"get": {
309+
"$ref": "#/$defs/operation"
310+
},
311+
"put": {
312+
"$ref": "#/$defs/operation"
313+
},
314+
"post": {
315+
"$ref": "#/$defs/operation"
316+
},
317+
"delete": {
318+
"$ref": "#/$defs/operation"
319+
},
320+
"options": {
321+
"$ref": "#/$defs/operation"
322+
},
323+
"head": {
324+
"$ref": "#/$defs/operation"
325+
},
326+
"patch": {
327+
"$ref": "#/$defs/operation"
328+
},
329+
"trace": {
311330
"$ref": "#/$defs/operation"
312331
}
313332
},

schemas/v3.1/schema.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,21 @@ $defs:
211211
type: array
212212
items:
213213
$ref: '#/$defs/parameter-or-reference'
214-
patternProperties:
215-
'^(get|put|post|delete|options|head|patch|trace)$':
214+
get:
215+
$ref: '#/$defs/operation'
216+
put:
217+
$ref: '#/$defs/operation'
218+
post:
219+
$ref: '#/$defs/operation'
220+
delete:
221+
$ref: '#/$defs/operation'
222+
options:
223+
$ref: '#/$defs/operation'
224+
head:
225+
$ref: '#/$defs/operation'
226+
patch:
227+
$ref: '#/$defs/operation'
228+
trace:
216229
$ref: '#/$defs/operation'
217230
$ref: '#/$defs/specification-extensions'
218231
unevaluatedProperties: false

0 commit comments

Comments
 (0)