nested schema fixes
This commit is contained in:
@@ -190,19 +190,19 @@ components:
|
||||
x-label: "Complications"
|
||||
required: [noteType, surgeryType]
|
||||
|
||||
Call:
|
||||
Action:
|
||||
type: object
|
||||
x-primary-key: _received_at
|
||||
x-display-format: "{sound}"
|
||||
x-list-columns: [sound]
|
||||
x-display-format: "{action}"
|
||||
x-list-columns: [action]
|
||||
properties:
|
||||
sound:
|
||||
action:
|
||||
type: string
|
||||
enum: [woof, meow, coo]
|
||||
x-label: "Sound"
|
||||
enum: [wagging_tail, blep, stretching, showing_belly, barking, panting, purring, kneading, head_tilt, chirping, wing_flap]
|
||||
x-label: "Action"
|
||||
x-order: 1
|
||||
x-filterable: false
|
||||
required: [sound]
|
||||
required: [action]
|
||||
|
||||
Parent:
|
||||
type: object
|
||||
@@ -1058,10 +1058,10 @@ paths:
|
||||
$ref: '#/components/responses/ValidationError'
|
||||
'500':
|
||||
$ref: '#/components/responses/InternalServerError'
|
||||
/pets/{id}/calls:
|
||||
/pets/{id}/actions:
|
||||
get:
|
||||
summary: Stream animal sounds via SSE, scoped to a pet's species
|
||||
operationId: stream_calls
|
||||
summary: Stream animal actions via SSE, scoped to a pet's species
|
||||
operationId: stream_actions
|
||||
x-sse: true
|
||||
parameters:
|
||||
- name: id
|
||||
@@ -1070,11 +1070,11 @@ paths:
|
||||
schema: {type: integer}
|
||||
responses:
|
||||
'200':
|
||||
description: SSE stream of random animal sounds
|
||||
description: SSE stream of random animal actions (behaviors)
|
||||
content:
|
||||
text/event-stream:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Call'
|
||||
$ref: '#/components/schemas/Action'
|
||||
|
||||
/appointments:
|
||||
get:
|
||||
|
||||
Reference in New Issue
Block a user