提交 d84b34e5 编写于 作者: K Karen Etheridge

Make PathItem operation properties specific.

(port of PR #2127 to v3.1)
上级 65d2a9f2
...@@ -319,10 +319,29 @@ ...@@ -319,10 +319,29 @@
"items": { "items": {
"$ref": "#/$defs/parameter-or-reference" "$ref": "#/$defs/parameter-or-reference"
} }
} },
}, "get": {
"patternProperties": { "$ref": "#/$defs/operation"
"^(get|put|post|delete|options|head|patch|trace)$": { },
"put": {
"$ref": "#/$defs/operation"
},
"post": {
"$ref": "#/$defs/operation"
},
"delete": {
"$ref": "#/$defs/operation"
},
"options": {
"$ref": "#/$defs/operation"
},
"head": {
"$ref": "#/$defs/operation"
},
"patch": {
"$ref": "#/$defs/operation"
},
"trace": {
"$ref": "#/$defs/operation" "$ref": "#/$defs/operation"
} }
}, },
......
...@@ -226,8 +226,21 @@ $defs: ...@@ -226,8 +226,21 @@ $defs:
type: array type: array
items: items:
$ref: '#/$defs/parameter-or-reference' $ref: '#/$defs/parameter-or-reference'
patternProperties: get:
'^(get|put|post|delete|options|head|patch|trace)$': $ref: '#/$defs/operation'
put:
$ref: '#/$defs/operation'
post:
$ref: '#/$defs/operation'
delete:
$ref: '#/$defs/operation'
options:
$ref: '#/$defs/operation'
head:
$ref: '#/$defs/operation'
patch:
$ref: '#/$defs/operation'
trace:
$ref: '#/$defs/operation' $ref: '#/$defs/operation'
$ref: '#/$defs/specification-extensions' $ref: '#/$defs/specification-extensions'
unevaluatedProperties: false unevaluatedProperties: false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册