Skip to content

Commit f6f4bab

Browse files
committed
swagger: Allow double and remove boolean in OutputElementStyle
Previously only float values were allowed. Don't restrict to float and allow Double as well. Note when deserializing JSON strings a floating point value will be deserialized to Double, e.g. when using Jackson deserializer (Java) or in Javascript. Remove boolean because it can be expressed as String and boolean have no equivalent type in CSS where the StyleProperties are inspired of. Contributes to: eclipse-cdt-cloud/trace-server-protocol#102 Signed-off-by: Bernd Hufmann <[email protected]>
1 parent 8af6d85 commit f6f4bab

File tree

1 file changed

+1
-1
lines changed
  • trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core/src/org/eclipse/tracecompass/incubator/internal/trace/server/jersey/rest/core/model

1 file changed

+1
-1
lines changed

trace-server/org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core/src/org/eclipse/tracecompass/incubator/internal/trace/server/jersey/rest/core/model/OutputElementStyle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public interface OutputElementStyle {
4545
/**
4646
* Type for style values (String, Float, Integer or Boolean)
4747
*/
48-
@Schema(description = "Supported types of a style value.", oneOf = { String.class, Float.class, Integer.class, Boolean.class })
48+
@Schema(description = "Supported types of a style value.", oneOf = { String.class, Double.class, Integer.class })
4949
interface StyleValue {
5050
// empty
5151
}

0 commit comments

Comments
 (0)