Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions schemas/v3.1/schema.yaml
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,7 +25,7 @@ properties:
webhooks:
type: object
additionalProperties:
$ref: '#/$defs/path-item-or-reference'
$ref: '#/$defs/path-item'
components:
$ref: '#/$defs/components'
security:
Expand DownExpand Up@@ -192,7 +192,7 @@ $defs:
pathItems:
type: object
additionalProperties:
$ref: '#/$defs/path-item-or-reference'
$ref: '#/$defs/path-item'
patternProperties:
'^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$':
$comment: Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected
Expand All@@ -214,6 +214,9 @@ $defs:
$comment: https://spec.openapis.org/oas/v3.1.0#path-item-object
type: object
properties:
$ref:
type: string
format: uri-reference
summary:
type: string
description:
Expand DownExpand Up@@ -245,16 +248,6 @@ $defs:
$ref: '#/$defs/specification-extensions'
unevaluatedProperties: false

path-item-or-reference:
if:
type: object
required:
- $ref
then:
$ref: '#/$defs/reference'
else:
$ref: '#/$defs/path-item'

operation:
$comment: https://spec.openapis.org/oas/v3.1.0#operation-object
type: object
Expand DownExpand Up@@ -617,7 +610,7 @@ $defs:
type: object
$ref: '#/$defs/specification-extensions'
additionalProperties:
$ref: '#/$defs/path-item-or-reference'
$ref: '#/$defs/path-item'

callbacks-or-reference:
if:
Expand Down