Skip to content

Commit 538b170

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

File tree

2 files changed

+58
-82
lines changed

2 files changed

+58
-82
lines changed

API-proposed.yaml

Lines changed: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3040,57 +3040,41 @@ components:
30403040
properties:
30413041
parameters:
30423042
$ref: "#/components/schemas/TreeParameters"
3043-
AxisDomain:
3044-
required:
3045-
- type
3046-
type: object
3047-
properties:
3048-
type:
3049-
type: string
3050-
description: "Type of axis domain (e.g., 'categorical' or 'timeRange')"
3051-
description: Domain of values supported on a chart axis. Can be either categorical
3052-
or numeric range.
3053-
discriminator:
3054-
propertyName: type
30553043
AxisDomainCategorical:
30563044
required:
30573045
- categories
30583046
- type
30593047
type: object
3060-
allOf:
3061-
- $ref: "#/components/schemas/AxisDomain"
3062-
- type: object
3063-
properties:
3064-
categories:
3065-
uniqueItems: true
3066-
type: array
3067-
description: List of category labels on the axis
3068-
items:
3069-
type: string
3070-
type:
3048+
properties:
3049+
categories:
3050+
uniqueItems: true
3051+
type: array
3052+
description: List of category labels on the axis
3053+
items:
30713054
type: string
3072-
description: Type of axis domain
3073-
AxisDomainTimeRange:
3055+
type:
3056+
type: string
3057+
description: "Type of axis domain: 'categorical'"
3058+
description: Domain of values supported on a categorical chart axis.
3059+
AxisDomainRange:
30743060
required:
30753061
- end
30763062
- start
30773063
- type
30783064
type: object
3079-
allOf:
3080-
- $ref: "#/components/schemas/AxisDomain"
3081-
- type: object
3082-
properties:
3083-
start:
3084-
type: integer
3085-
description: Start of the axis range
3086-
format: int64
3087-
end:
3088-
type: integer
3089-
description: End of the axis range
3090-
format: int64
3091-
type:
3092-
type: string
3093-
description: Type of axis domain
3065+
properties:
3066+
start:
3067+
type: integer
3068+
description: Start of the axis range
3069+
format: int64
3070+
end:
3071+
type: integer
3072+
description: End of the axis range
3073+
format: int64
3074+
type:
3075+
type: string
3076+
description: "Type of axis domain: 'range'"
3077+
description: Domain of values supported on a numberical range chart axis.
30943078
CategorySampling:
30953079
required:
30963080
- sampling
@@ -3170,7 +3154,11 @@ components:
31703154
type: string
31713155
description: Label for the axis
31723156
axisDomain:
3173-
$ref: '#/components/schemas/AxisDomain'
3157+
type: object
3158+
description: Optional domain of values that this axis supports
3159+
oneOf:
3160+
- $ref: "#/components/schemas/AxisDomainCategorical"
3161+
- $ref: "#/components/schemas/AxisDomainRange"
31743162
description: "Describes a single axis in an XY chart, including label, unit,\
31753163
\ data type, and optional domain."
31763164
GenericTimeRange:

API.yaml

Lines changed: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2519,57 +2519,41 @@ components:
25192519
properties:
25202520
parameters:
25212521
$ref: "#/components/schemas/TreeParameters"
2522-
AxisDomain:
2523-
required:
2524-
- type
2525-
type: object
2526-
properties:
2527-
type:
2528-
type: string
2529-
description: "Type of axis domain (e.g., 'categorical' or 'timeRange')"
2530-
description: Domain of values supported on a chart axis. Can be either categorical
2531-
or numeric range.
2532-
discriminator:
2533-
propertyName: type
25342522
AxisDomainCategorical:
25352523
required:
25362524
- categories
25372525
- type
25382526
type: object
2539-
allOf:
2540-
- $ref: "#/components/schemas/AxisDomain"
2541-
- type: object
2542-
properties:
2543-
categories:
2544-
uniqueItems: true
2545-
type: array
2546-
description: List of category labels on the axis
2547-
items:
2548-
type: string
2549-
type:
2527+
properties:
2528+
categories:
2529+
uniqueItems: true
2530+
type: array
2531+
description: List of category labels on the axis
2532+
items:
25502533
type: string
2551-
description: Type of axis domain
2552-
AxisDomainTimeRange:
2534+
type:
2535+
type: string
2536+
description: "Type of axis domain: 'categorical'"
2537+
description: Domain of values supported on a categorical chart axis.
2538+
AxisDomainRange:
25532539
required:
25542540
- end
25552541
- start
25562542
- type
25572543
type: object
2558-
allOf:
2559-
- $ref: "#/components/schemas/AxisDomain"
2560-
- type: object
2561-
properties:
2562-
start:
2563-
type: integer
2564-
description: Start of the axis range
2565-
format: int64
2566-
end:
2567-
type: integer
2568-
description: End of the axis range
2569-
format: int64
2570-
type:
2571-
type: string
2572-
description: Type of axis domain
2544+
properties:
2545+
start:
2546+
type: integer
2547+
description: Start of the axis range
2548+
format: int64
2549+
end:
2550+
type: integer
2551+
description: End of the axis range
2552+
format: int64
2553+
type:
2554+
type: string
2555+
description: "Type of axis domain: 'range'"
2556+
description: Domain of values supported on a numberical range chart axis.
25732557
CategorySampling:
25742558
required:
25752559
- sampling
@@ -2649,7 +2633,11 @@ components:
26492633
type: string
26502634
description: Label for the axis
26512635
axisDomain:
2652-
$ref: "#/components/schemas/AxisDomain"
2636+
type: object
2637+
description: Optional domain of values that this axis supports
2638+
oneOf:
2639+
- $ref: "#/components/schemas/AxisDomainCategorical"
2640+
- $ref: "#/components/schemas/AxisDomainRange"
26532641
description: "Describes a single axis in an XY chart, including label, unit,\
26542642
\ data type, and optional domain."
26552643
GenericTimeRange:

0 commit comments

Comments
 (0)