Make PathItem operation properties specific.
(port of PR to v3.1)
MODIFY
schemas/v3.1/schema.json
schemas/v3.1/schema.json
"items": {
"$ref": "#/$defs/parameter-or-reference"
}
- }
},
- "patternProperties": {
- "^(get|put|post|delete|options|head|patch|trace)$": {
+ "get": {
+ "$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"
}
},

MODIFY
schemas/v3.1/schema.yaml
schemas/v3.1/schema.yaml
@@ -226,8 +226,21 @@ $defs:
type: array
items:
$ref: '#/$defs/parameter-or-reference'
- patternProperties:
- '^(get|put|post|delete|options|head|patch|trace)$':
+ get:
+ $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/specification-extensions'
unevaluatedProperties: false

Make PathItem operation properties specific.

(port of PR #2127 to v3.1)