Skip to content

Commit bbd49b6

Browse files
committed
Revert embedding $ref in Schema
1 parent 66659e4 commit bbd49b6

File tree

1 file changed

+31
-13
lines changed

1 file changed

+31
-13
lines changed

schemas/v3.0/schema.yaml

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ definitions:
134134
type: object
135135
patternProperties:
136136
'^[a-zA-Z0-9\.\-_]+$':
137-
$ref: '#/definitions/Schema'
137+
oneOf:
138+
- $ref: '#/definitions/Schema'
139+
- $ref: '#/definitions/Reference'
138140
responses:
139141
type: object
140142
patternProperties:
@@ -262,28 +264,41 @@ definitions:
262264
- object
263265
- string
264266
not:
265-
$ref: '#/definitions/Schema'
267+
oneOf:
268+
- $ref: '#/definitions/Schema'
269+
- $ref: '#/definitions/Reference'
266270
allOf:
267271
type: array
268272
items:
269-
$ref: '#/definitions/Schema'
273+
oneOf:
274+
- $ref: '#/definitions/Schema'
275+
- $ref: '#/definitions/Reference'
270276
oneOf:
271277
type: array
272278
items:
273-
$ref: '#/definitions/Schema'
279+
oneOf:
280+
- $ref: '#/definitions/Schema'
281+
- $ref: '#/definitions/Reference'
274282
anyOf:
275283
type: array
276284
items:
277-
$ref: '#/definitions/Schema'
285+
oneOf:
286+
- $ref: '#/definitions/Schema'
287+
- $ref: '#/definitions/Reference'
278288
items:
279-
$ref: '#/definitions/Schema'
289+
oneOf:
290+
- $ref: '#/definitions/Schema'
291+
- $ref: '#/definitions/Reference'
280292
properties:
281293
type: object
282294
additionalProperties:
283-
$ref: '#/definitions/Schema'
295+
oneOf:
296+
- $ref: '#/definitions/Schema'
297+
- $ref: '#/definitions/Reference'
284298
additionalProperties:
285299
oneOf:
286300
- $ref: '#/definitions/Schema'
301+
- $ref: '#/definitions/Reference'
287302
- type: boolean
288303
default: true
289304
description:
@@ -311,9 +326,6 @@ definitions:
311326
xml:
312327
$ref: '#/definitions/XML'
313328
patternProperties:
314-
'^\$ref$':
315-
type: string
316-
format: uri-reference
317329
'^x-': {}
318330
additionalProperties: false
319331

@@ -380,7 +392,9 @@ definitions:
380392
type: object
381393
properties:
382394
schema:
383-
$ref: '#/definitions/Schema'
395+
oneOf:
396+
- $ref: '#/definitions/Schema'
397+
- $ref: '#/definitions/Reference'
384398
example: {}
385399
examples:
386400
type: object
@@ -438,7 +452,9 @@ definitions:
438452
type: boolean
439453
default: false
440454
schema:
441-
$ref: '#/definitions/Schema'
455+
oneOf:
456+
- $ref: '#/definitions/Schema'
457+
- $ref: '#/definitions/Reference'
442458
content:
443459
type: object
444460
additionalProperties:
@@ -648,7 +664,9 @@ definitions:
648664
type: boolean
649665
default: false
650666
schema:
651-
$ref: '#/definitions/Schema'
667+
oneOf:
668+
- $ref: '#/definitions/Schema'
669+
- $ref: '#/definitions/Reference'
652670
content:
653671
type: object
654672
additionalProperties:

0 commit comments

Comments
 (0)