Skip to content

Commit 4f0583b

Browse files
committed
swagger: Specify list possible implementation of AxisDomain + fixes
Signed-off-by: Bernd Hufmann <[email protected]>
1 parent 8eab3f0 commit 4f0583b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

API-proposed.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3047,11 +3047,14 @@ components:
30473047
properties:
30483048
type:
30493049
type: string
3050-
description: "Type of axis domain (e.g., 'categorical' or 'timeRange')"
3050+
description: "Type of axis domain (e.g., 'categorical' or 'range')"
30513051
description: Domain of values supported on a chart axis. Can be either categorical
30523052
or numeric range.
30533053
discriminator:
30543054
propertyName: type
3055+
oneOf:
3056+
- $ref: "#/components/schemas/AxisDomainCategorical"
3057+
- $ref: "#/components/schemas/AxisDomainRange"
30553058
AxisDomainCategorical:
30563059
required:
30573060
- categories
@@ -3070,7 +3073,7 @@ components:
30703073
type:
30713074
type: string
30723075
description: Type of axis domain
3073-
AxisDomainTimeRange:
3076+
AxisDomainRange:
30743077
required:
30753078
- end
30763079
- start
@@ -3170,7 +3173,7 @@ components:
31703173
type: string
31713174
description: Label for the axis
31723175
axisDomain:
3173-
$ref: '#/components/schemas/AxisDomain'
3176+
$ref: "#/components/schemas/AxisDomain"
31743177
description: "Describes a single axis in an XY chart, including label, unit,\
31753178
\ data type, and optional domain."
31763179
GenericTimeRange:

API.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,11 +2526,14 @@ components:
25262526
properties:
25272527
type:
25282528
type: string
2529-
description: "Type of axis domain (e.g., 'categorical' or 'timeRange')"
2529+
description: "Type of axis domain (e.g., 'categorical' or 'range')"
25302530
description: Domain of values supported on a chart axis. Can be either categorical
25312531
or numeric range.
25322532
discriminator:
25332533
propertyName: type
2534+
oneOf:
2535+
- $ref: "#/components/schemas/AxisDomainCategorical"
2536+
- $ref: "#/components/schemas/AxisDomainRange"
25342537
AxisDomainCategorical:
25352538
required:
25362539
- categories
@@ -2549,7 +2552,7 @@ components:
25492552
type:
25502553
type: string
25512554
description: Type of axis domain
2552-
AxisDomainTimeRange:
2555+
AxisDomainRange:
25532556
required:
25542557
- end
25552558
- start

0 commit comments

Comments
 (0)