From 0595439fb322ddcc30fc13d1f69d00302abe95f5 Mon Sep 17 00:00:00 2001 From: ambientlight Date: Tue, 27 Jul 2021 19:41:54 +0800 Subject: [PATCH 1/2] fix RangeObject properties inconsistency: double -> string --- .../featurestate/Featurestate_GetStateset.json | 12 ++++++------ .../2.0/examples/featurestate/Featurestate_List.json | 12 ++++++------ .../data-plane/Creator/preview/2.0/featurestate.json | 12 ++++-------- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_GetStateset.json b/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_GetStateset.json index e853a767027e..ff6d43f4b6a0 100644 --- a/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_GetStateset.json +++ b/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_GetStateset.json @@ -32,31 +32,31 @@ "minimum": null, "maximum": null, "exclusiveMinimum": null, - "exclusiveMaximum": 50 + "exclusiveMaximum": "50" }, "color": "#343deb" }, { "range": { - "minimum": 50, + "minimum": "50", "maximum": null, "exclusiveMinimum": null, - "exclusiveMaximum": 69 + "exclusiveMaximum": "69" }, "color": "#34ebb1" }, { "range": { - "minimum": 69, + "minimum": "69", "maximum": null, "exclusiveMinimum": null, - "exclusiveMaximum": 90 + "exclusiveMaximum": "90" }, "color": "#eba834" }, { "range": { - "minimum": 90, + "minimum": "90", "maximum": null, "exclusiveMinimum": null, "exclusiveMaximum": null diff --git a/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_List.json b/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_List.json index 555e8e54f3e7..b810b73a8c1f 100644 --- a/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_List.json +++ b/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_List.json @@ -34,31 +34,31 @@ "minimum": null, "maximum": null, "exclusiveMinimum": null, - "exclusiveMaximum": 50 + "exclusiveMaximum": "50" }, "color": "#343deb" }, { "range": { - "minimum": 50, + "minimum": "50", "maximum": null, "exclusiveMinimum": null, - "exclusiveMaximum": 69 + "exclusiveMaximum": "69" }, "color": "#34ebb1" }, { "range": { - "minimum": 69, + "minimum": "69", "maximum": null, "exclusiveMinimum": null, - "exclusiveMaximum": 90 + "exclusiveMaximum": "90" }, "color": "#eba834" }, { "range": { - "minimum": 90, + "minimum": "90", "maximum": null, "exclusiveMinimum": null, "exclusiveMaximum": null diff --git a/specification/maps/data-plane/Creator/preview/2.0/featurestate.json b/specification/maps/data-plane/Creator/preview/2.0/featurestate.json index 51bc9cbbb415..1ba0b4e9a38e 100644 --- a/specification/maps/data-plane/Creator/preview/2.0/featurestate.json +++ b/specification/maps/data-plane/Creator/preview/2.0/featurestate.json @@ -517,23 +517,19 @@ "properties": { "minimum": { "description": "All the number x that x ≥ minimum.", - "type": "number", - "format": "double" + "type": "string" }, "maximum": { "description": "All the number x that x ≤ maximum.", - "type": "number", - "format": "double" + "type": "string" }, "exclusiveMinimum": { "description": "All the number x that x > exclusiveMinimum.", - "type": "number", - "format": "double" + "type": "string" }, "exclusiveMaximum": { "description": "All the number x that x < exclusiveMaximum.", - "type": "number", - "format": "double" + "type": "string" } } }, From c712e3679f65f25fac291547238c23022d2dec23 Mon Sep 17 00:00:00 2001 From: ambientlight Date: Tue, 27 Jul 2021 23:20:02 +0800 Subject: [PATCH 2/2] update remaining samples --- .../featurestate/Featurestate_CreateStateset.json | 12 ++++++------ .../featurestate/Featurestate_UpdateStateset.json | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_CreateStateset.json b/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_CreateStateset.json index 880d8ffa2a42..10cb4c1c3c01 100644 --- a/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_CreateStateset.json +++ b/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_CreateStateset.json @@ -22,27 +22,27 @@ "rules": [ { "range": { - "exclusiveMaximum": 50 + "exclusiveMaximum": "50" }, "color": "#343deb" }, { "range": { - "minimum": 50, - "exclusiveMaximum": 70 + "minimum": "50", + "exclusiveMaximum": "70" }, "color": "#34ebb1" }, { "range": { - "minimum": 70, - "exclusiveMaximum": 90 + "minimum": "70", + "exclusiveMaximum": "90" }, "color": "#eba834" }, { "range": { - "minimum": 90 + "minimum": "90" }, "color": "#eb3434" } diff --git a/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_UpdateStateset.json b/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_UpdateStateset.json index 9c3e9e62f2d3..792430d33438 100644 --- a/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_UpdateStateset.json +++ b/specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_UpdateStateset.json @@ -21,27 +21,27 @@ "rules": [ { "range": { - "exclusiveMaximum": 50 + "exclusiveMaximum": "50" }, "color": "#343deb" }, { "range": { - "minimum": 50, - "exclusiveMaximum": 69 + "minimum": "50", + "exclusiveMaximum": "69" }, "color": "#34ebb1" }, { "range": { - "minimum": 69, - "exclusiveMaximum": 90 + "minimum": "69", + "exclusiveMaximum": "90" }, "color": "#eba834" }, { "range": { - "minimum": 90 + "minimum": "90" }, "color": "#eb3434" }