nested inline schemas

This commit is contained in:
2026-06-17 01:01:35 +05:30
parent d912053368
commit 61de233745
3 changed files with 73 additions and 5 deletions

View File

@@ -23,6 +23,41 @@ components:
type: string
format: date-time
Procedure:
type: object
x-display-format: "{name} — ${cost}"
properties:
name:
type: string
x-order: 1
x-label: "Procedure Name"
description:
type: string
x-order: 2
x-label: "Description"
cost:
type: number
format: float
x-order: 3
x-label: "Cost"
notes:
$ref: '#/components/schemas/ProcedureNotes'
x-order: 4
x-label: "Notes"
ProcedureNotes:
type: object
x-display-format: "{summary}"
properties:
summary:
type: string
x-order: 1
x-label: "Summary"
details:
type: string
x-order: 2
x-label: "Details"
Parent:
type: object
x-resource: parents
@@ -131,6 +166,13 @@ components:
x-order: 2
x-label: "Description"
x-description: "Detailed description of the treatment"
procedures:
type: array
items:
$ref: '#/components/schemas/Procedure'
x-order: 3
x-label: "Procedures"
x-description: "List of procedures performed during this treatment"
metadata:
$ref: '#/components/schemas/Metadata'
x-order: 4