Skip to content

Commit

Permalink
Merge pull request #3258 from handrews/schema-30-use-defs
Browse files Browse the repository at this point in the history
merging per discussions on today's TDC call
  • Loading branch information
earth2marsh authored Feb 1, 2024
2 parents 40984f4 + 136371f commit b4189b6
Showing 1 changed file with 41 additions and 36 deletions.
77 changes: 41 additions & 36 deletions schemas/v3.0/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -706,46 +706,51 @@ definitions:
allOf:
- $ref: '#/definitions/ExampleXORExamples'
- $ref: '#/definitions/SchemaXORContent'
- $ref: '#/definitions/ParameterLocation'

ParameterLocation:
description: Parameter location
oneOf:
- description: Parameter in path
required:
- required
properties:
in:
enum: [path]
style:
enum: [matrix, label, simple]
default: simple
required:
enum: [true]
- $ref: '#/definitions/PathParameter'
- $ref: '#/definitions/QueryParameter'
- $ref: '#/definitions/HeaderParameter'
- $ref: '#/definitions/CookieParameter'

- description: Parameter in query
properties:
in:
enum: [query]
style:
enum: [form, spaceDelimited, pipeDelimited, deepObject]
default: form
PathParameter:
description: Parameter in path
required:
- required
properties:
in:
enum: [path]
style:
enum: [matrix, label, simple]
default: simple
required:
enum: [true]

- description: Parameter in header
properties:
in:
enum: [header]
style:
enum: [simple]
default: simple
QueryParameter:
description: Parameter in query
properties:
in:
enum: [query]
style:
enum: [form, spaceDelimited, pipeDelimited, deepObject]
default: form

- description: Parameter in cookie
properties:
in:
enum: [cookie]
style:
enum: [form]
default: form
HeaderParameter:
description: Parameter in header
properties:
in:
enum: [header]
style:
enum: [simple]
default: simple

CookieParameter:
description: Parameter in cookie
properties:
in:
enum: [cookie]
style:
enum: [form]
default: form

RequestBody:
type: object
Expand Down

0 comments on commit b4189b6

Please sign in to comment.