Skip to content

Support new dictionaries on OpenApi.Components (Parameters, RequestBodies, Responses) #128

Open
@perkops

Description

@perkops

Support new dictionaries on OpenApi.Components (Parameters, RequestBodies, Responses)

Today we only support the "Schemas" dictionary beneath OpenApi.Components.

But - it is now a possibility to define specific RequestBodies, Response or Parameters (Query, Path, Header, Cookie) in their own sections.

Example yaml for response:

/devices/status:
get:
summary: Retrieve devices and module status
description: Retrieve devices and module status
operationId: getDevicesStatus
responses:
'200':
$ref: '#/components/responses/DevicesResponse'
parameters: []

responses:
DevicesResponse:
description: Example response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Device'

Device:
  title: Device
  type: object
  properties:
    deviceId:
      type: string

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions