Skip to content

Commit 9d29d4b

Browse files
committed
swagger: Fix type of style values for OutputElementStyle
Fixes 102 see trace server PR: eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator#190 Signed-off-by: Bernd Hufmann <[email protected]>
1 parent cbfd88b commit 9d29d4b

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

API-proposed.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2621,16 +2621,24 @@ components:
26212621
values:
26222622
type: object
26232623
additionalProperties:
2624-
type: object
2625-
description: Style values or empty map if there are no values. Keys and
2626-
values are defined in https://git.eclipse.org/r/plugins/gitiles/tracecompass/org.eclipse.tracecompass/+/refs/heads/master/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/model/StyleProperties.java
2624+
$ref: '#/components/schemas/StyleValue'
26272625
description: Style values or empty map if there are no values. Keys and
2628-
values are defined in https://git.eclipse.org/r/plugins/gitiles/tracecompass/org.eclipse.tracecompass/+/refs/heads/master/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/model/StyleProperties.java
2626+
values are defined in https://github.com/eclipse-tracecompass/org.eclipse.tracecompass/blob/master/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/model/StyleProperties.java
26292627
description: "Represents the style on an element (ex. Entry, TimeGraphState,\
26302628
\ ...) returned by any output. Supports style inheritance. To avoid having\
26312629
\ too many styles, the element style can have a parent style and will have\
26322630
\ all the same style property values as the parent, and can add or override\
26332631
\ style properties."
2632+
StyleValue:
2633+
type: object
2634+
description: Supported types of a style value.
2635+
oneOf:
2636+
- type: string
2637+
- type: number
2638+
format: float
2639+
- type: integer
2640+
format: int32
2641+
- type: boolean
26342642
AnnotationsParameters:
26352643
required:
26362644
- requested_timerange

API.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,16 +2100,24 @@ components:
21002100
values:
21012101
type: object
21022102
additionalProperties:
2103-
type: object
2104-
description: Style values or empty map if there are no values. Keys and
2105-
values are defined in https://git.eclipse.org/r/plugins/gitiles/tracecompass/org.eclipse.tracecompass/+/refs/heads/master/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/model/StyleProperties.java
2103+
$ref: '#/components/schemas/StyleValue'
21062104
description: Style values or empty map if there are no values. Keys and
2107-
values are defined in https://git.eclipse.org/r/plugins/gitiles/tracecompass/org.eclipse.tracecompass/+/refs/heads/master/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/model/StyleProperties.java
2105+
values are defined in https://github.com/eclipse-tracecompass/org.eclipse.tracecompass/blob/master/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/model/StyleProperties.java
21082106
description: "Represents the style on an element (ex. Entry, TimeGraphState,\
21092107
\ ...) returned by any output. Supports style inheritance. To avoid having\
21102108
\ too many styles, the element style can have a parent style and will have\
21112109
\ all the same style property values as the parent, and can add or override\
21122110
\ style properties."
2111+
StyleValue:
2112+
type: object
2113+
description: Supported types of a style value.
2114+
oneOf:
2115+
- type: string
2116+
- type: number
2117+
format: float
2118+
- type: integer
2119+
format: int32
2120+
- type: boolean
21132121
AnnotationsParameters:
21142122
required:
21152123
- requested_timerange

0 commit comments

Comments
 (0)