Skip to content

Commit 2d1f573

Browse files
authored
Merge pull request #2158 from alasdairhurst/master
#2157: Update schema to validate refs in headers of encoding objects
2 parents 851a6d1 + 76f184b commit 2d1f573

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

schemas/v3.0/schema.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: https://spec.openapis.org/oas/3.0/schema/2019-04-02
1+
id: https://spec.openapis.org/oas/3.0/schema/2020-02-25
22
$schema: http://json-schema.org/draft-04/schema#
33
description: Validation schema for OpenAPI Specification 3.0.X.
44
type: object
@@ -987,7 +987,9 @@ definitions:
987987
headers:
988988
type: object
989989
additionalProperties:
990-
$ref: '#/definitions/Header'
990+
oneOf:
991+
- $ref: '#/definitions/Header'
992+
- $ref: '#/definitions/Reference'
991993
style:
992994
type: string
993995
enum:

0 commit comments

Comments
 (0)