Open
Description
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
Assignees
Labels
No labels