Skip to content

Commit 2eee50f

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

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
@@ -3037,57 +3037,41 @@ components:
30373037
properties:
30383038
parameters:
30393039
$ref: "#/components/schemas/TreeParameters"
3040-
AxisDomain:
3041-
required:
3042-
- type
3043-
type: object
3044-
properties:
3045-
type:
3046-
type: string
3047-
description: "Type of axis domain (e.g., 'categorical' or 'timeRange')"
3048-
description: Domain of values supported on a chart axis. Can be either categorical
3049-
or numeric range.
3050-
discriminator:
3051-
propertyName: type
30523040
AxisDomainCategorical:
30533041
required:
30543042
- categories
30553043
- type
30563044
type: object
3057-
allOf:
3058-
- $ref: "#/components/schemas/AxisDomain"
3059-
- type: object
3060-
properties:
3061-
categories:
3062-
uniqueItems: true
3063-
type: array
3064-
description: List of category labels on the axis
3065-
items:
3066-
type: string
3067-
type:
3045+
properties:
3046+
categories:
3047+
uniqueItems: true
3048+
type: array
3049+
description: List of category labels on the axis
3050+
items:
30683051
type: string
3069-
description: Type of axis domain
3070-
AxisDomainTimeRange:
3052+
type:
3053+
type: string
3054+
description: "Type of axis domain: 'categorical'"
3055+
description: Domain of values supported on a categorical chart axis.
3056+
AxisDomainRange:
30713057
required:
30723058
- end
30733059
- start
30743060
- type
30753061
type: object
3076-
allOf:
3077-
- $ref: "#/components/schemas/AxisDomain"
3078-
- type: object
3079-
properties:
3080-
start:
3081-
type: integer
3082-
description: Start of the axis range
3083-
format: int64
3084-
end:
3085-
type: integer
3086-
description: End of the axis range
3087-
format: int64
3088-
type:
3089-
type: string
3090-
description: Type of axis domain
3062+
properties:
3063+
start:
3064+
type: integer
3065+
description: Start of the axis range
3066+
format: int64
3067+
end:
3068+
type: integer
3069+
description: End of the axis range
3070+
format: int64
3071+
type:
3072+
type: string
3073+
description: "Type of axis domain: 'range'"
3074+
description: Domain of values supported on a numberical range chart axis.
30913075
CategorySampling:
30923076
required:
30933077
- sampling
@@ -3167,7 +3151,11 @@ components:
31673151
type: string
31683152
description: Label for the axis
31693153
axisDomain:
3170-
$ref: '#/components/schemas/AxisDomain'
3154+
type: object
3155+
description: Optional domain of values that this axis supports
3156+
oneOf:
3157+
- $ref: "#/components/schemas/AxisDomainCategorical"
3158+
- $ref: "#/components/schemas/AxisDomainRange"
31713159
description: "Describes a single axis in an XY chart, including label, unit,\
31723160
\ data type, and optional domain."
31733161
GenericTimeRange:

API.yaml

Lines changed: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,57 +2516,41 @@ components:
25162516
properties:
25172517
parameters:
25182518
$ref: "#/components/schemas/TreeParameters"
2519-
AxisDomain:
2520-
required:
2521-
- type
2522-
type: object
2523-
properties:
2524-
type:
2525-
type: string
2526-
description: "Type of axis domain (e.g., 'categorical' or 'timeRange')"
2527-
description: Domain of values supported on a chart axis. Can be either categorical
2528-
or numeric range.
2529-
discriminator:
2530-
propertyName: type
25312519
AxisDomainCategorical:
25322520
required:
25332521
- categories
25342522
- type
25352523
type: object
2536-
allOf:
2537-
- $ref: "#/components/schemas/AxisDomain"
2538-
- type: object
2539-
properties:
2540-
categories:
2541-
uniqueItems: true
2542-
type: array
2543-
description: List of category labels on the axis
2544-
items:
2545-
type: string
2546-
type:
2524+
properties:
2525+
categories:
2526+
uniqueItems: true
2527+
type: array
2528+
description: List of category labels on the axis
2529+
items:
25472530
type: string
2548-
description: Type of axis domain
2549-
AxisDomainTimeRange:
2531+
type:
2532+
type: string
2533+
description: "Type of axis domain: 'categorical'"
2534+
description: Domain of values supported on a categorical chart axis.
2535+
AxisDomainRange:
25502536
required:
25512537
- end
25522538
- start
25532539
- type
25542540
type: object
2555-
allOf:
2556-
- $ref: "#/components/schemas/AxisDomain"
2557-
- type: object
2558-
properties:
2559-
start:
2560-
type: integer
2561-
description: Start of the axis range
2562-
format: int64
2563-
end:
2564-
type: integer
2565-
description: End of the axis range
2566-
format: int64
2567-
type:
2568-
type: string
2569-
description: Type of axis domain
2541+
properties:
2542+
start:
2543+
type: integer
2544+
description: Start of the axis range
2545+
format: int64
2546+
end:
2547+
type: integer
2548+
description: End of the axis range
2549+
format: int64
2550+
type:
2551+
type: string
2552+
description: "Type of axis domain: 'range'"
2553+
description: Domain of values supported on a numberical range chart axis.
25702554
CategorySampling:
25712555
required:
25722556
- sampling
@@ -2646,7 +2630,11 @@ components:
26462630
type: string
26472631
description: Label for the axis
26482632
axisDomain:
2649-
$ref: "#/components/schemas/AxisDomain"
2633+
type: object
2634+
description: Optional domain of values that this axis supports
2635+
oneOf:
2636+
- $ref: "#/components/schemas/AxisDomainCategorical"
2637+
- $ref: "#/components/schemas/AxisDomainRange"
26502638
description: "Describes a single axis in an XY chart, including label, unit,\
26512639
\ data type, and optional domain."
26522640
GenericTimeRange:

0 commit comments

Comments
 (0)