Skip to content

Commit

Permalink
Revert embedding $ref in Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop committed Mar 22, 2019
1 parent 66659e4 commit bbd49b6
Showing 1 changed file with 31 additions and 13 deletions.
44 changes: 31 additions & 13 deletions schemas/v3.0/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ definitions:
type: object
patternProperties:
'^[a-zA-Z0-9\.\-_]+$':
$ref: '#/definitions/Schema'
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
responses:
type: object
patternProperties:
Expand Down Expand Up @@ -262,28 +264,41 @@ definitions:
- object
- string
not:
$ref: '#/definitions/Schema'
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
allOf:
type: array
items:
$ref: '#/definitions/Schema'
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
oneOf:
type: array
items:
$ref: '#/definitions/Schema'
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
anyOf:
type: array
items:
$ref: '#/definitions/Schema'
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
items:
$ref: '#/definitions/Schema'
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
properties:
type: object
additionalProperties:
$ref: '#/definitions/Schema'
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
additionalProperties:
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
- type: boolean
default: true
description:
Expand Down Expand Up @@ -311,9 +326,6 @@ definitions:
xml:
$ref: '#/definitions/XML'
patternProperties:
'^\$ref$':
type: string
format: uri-reference
'^x-': {}
additionalProperties: false

Expand Down Expand Up @@ -380,7 +392,9 @@ definitions:
type: object
properties:
schema:
$ref: '#/definitions/Schema'
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
example: {}
examples:
type: object
Expand Down Expand Up @@ -438,7 +452,9 @@ definitions:
type: boolean
default: false
schema:
$ref: '#/definitions/Schema'
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
content:
type: object
additionalProperties:
Expand Down Expand Up @@ -648,7 +664,9 @@ definitions:
type: boolean
default: false
schema:
$ref: '#/definitions/Schema'
oneOf:
- $ref: '#/definitions/Schema'
- $ref: '#/definitions/Reference'
content:
type: object
additionalProperties:
Expand Down

0 comments on commit bbd49b6

Please sign in to comment.