Skip to content

Commit b60aed7

Browse files
authored
[Hub Generated] fix RangeObject property types in Maps Creator preview/2.0 (#15388)
* fix RangeObject properties inconsistency: double -> string * update remaining samples
1 parent b2bddfe commit b60aed7

File tree

5 files changed

+28
-32
lines changed

5 files changed

+28
-32
lines changed

specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_CreateStateset.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,27 @@
2222
"rules": [
2323
{
2424
"range": {
25-
"exclusiveMaximum": 50
25+
"exclusiveMaximum": "50"
2626
},
2727
"color": "#343deb"
2828
},
2929
{
3030
"range": {
31-
"minimum": 50,
32-
"exclusiveMaximum": 70
31+
"minimum": "50",
32+
"exclusiveMaximum": "70"
3333
},
3434
"color": "#34ebb1"
3535
},
3636
{
3737
"range": {
38-
"minimum": 70,
39-
"exclusiveMaximum": 90
38+
"minimum": "70",
39+
"exclusiveMaximum": "90"
4040
},
4141
"color": "#eba834"
4242
},
4343
{
4444
"range": {
45-
"minimum": 90
45+
"minimum": "90"
4646
},
4747
"color": "#eb3434"
4848
}

specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_GetStateset.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,31 @@
3232
"minimum": null,
3333
"maximum": null,
3434
"exclusiveMinimum": null,
35-
"exclusiveMaximum": 50
35+
"exclusiveMaximum": "50"
3636
},
3737
"color": "#343deb"
3838
},
3939
{
4040
"range": {
41-
"minimum": 50,
41+
"minimum": "50",
4242
"maximum": null,
4343
"exclusiveMinimum": null,
44-
"exclusiveMaximum": 69
44+
"exclusiveMaximum": "69"
4545
},
4646
"color": "#34ebb1"
4747
},
4848
{
4949
"range": {
50-
"minimum": 69,
50+
"minimum": "69",
5151
"maximum": null,
5252
"exclusiveMinimum": null,
53-
"exclusiveMaximum": 90
53+
"exclusiveMaximum": "90"
5454
},
5555
"color": "#eba834"
5656
},
5757
{
5858
"range": {
59-
"minimum": 90,
59+
"minimum": "90",
6060
"maximum": null,
6161
"exclusiveMinimum": null,
6262
"exclusiveMaximum": null

specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_List.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,31 @@
3434
"minimum": null,
3535
"maximum": null,
3636
"exclusiveMinimum": null,
37-
"exclusiveMaximum": 50
37+
"exclusiveMaximum": "50"
3838
},
3939
"color": "#343deb"
4040
},
4141
{
4242
"range": {
43-
"minimum": 50,
43+
"minimum": "50",
4444
"maximum": null,
4545
"exclusiveMinimum": null,
46-
"exclusiveMaximum": 69
46+
"exclusiveMaximum": "69"
4747
},
4848
"color": "#34ebb1"
4949
},
5050
{
5151
"range": {
52-
"minimum": 69,
52+
"minimum": "69",
5353
"maximum": null,
5454
"exclusiveMinimum": null,
55-
"exclusiveMaximum": 90
55+
"exclusiveMaximum": "90"
5656
},
5757
"color": "#eba834"
5858
},
5959
{
6060
"range": {
61-
"minimum": 90,
61+
"minimum": "90",
6262
"maximum": null,
6363
"exclusiveMinimum": null,
6464
"exclusiveMaximum": null

specification/maps/data-plane/Creator/preview/2.0/examples/featurestate/Featurestate_UpdateStateset.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@
2121
"rules": [
2222
{
2323
"range": {
24-
"exclusiveMaximum": 50
24+
"exclusiveMaximum": "50"
2525
},
2626
"color": "#343deb"
2727
},
2828
{
2929
"range": {
30-
"minimum": 50,
31-
"exclusiveMaximum": 69
30+
"minimum": "50",
31+
"exclusiveMaximum": "69"
3232
},
3333
"color": "#34ebb1"
3434
},
3535
{
3636
"range": {
37-
"minimum": 69,
38-
"exclusiveMaximum": 90
37+
"minimum": "69",
38+
"exclusiveMaximum": "90"
3939
},
4040
"color": "#eba834"
4141
},
4242
{
4343
"range": {
44-
"minimum": 90
44+
"minimum": "90"
4545
},
4646
"color": "#eb3434"
4747
}

specification/maps/data-plane/Creator/preview/2.0/featurestate.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -541,23 +541,19 @@
541541
"properties": {
542542
"minimum": {
543543
"description": "All the number x that x ≥ minimum.",
544-
"type": "number",
545-
"format": "double"
544+
"type": "string"
546545
},
547546
"maximum": {
548547
"description": "All the number x that x ≤ maximum.",
549-
"type": "number",
550-
"format": "double"
548+
"type": "string"
551549
},
552550
"exclusiveMinimum": {
553551
"description": "All the number x that x > exclusiveMinimum.",
554-
"type": "number",
555-
"format": "double"
552+
"type": "string"
556553
},
557554
"exclusiveMaximum": {
558555
"description": "All the number x that x < exclusiveMaximum.",
559-
"type": "number",
560-
"format": "double"
556+
"type": "string"
561557
}
562558
}
563559
},

0 commit comments

Comments
 (0)