Skip to content

Commit 96d762b

Browse files
committed
Merge pull request #3 from go-lab/iss2/modify_metadata_examples
Modify metadta to new updates. Closes #2
2 parents 08ffb6a + 7b375ca commit 96d762b

File tree

6 files changed

+47
-0
lines changed

6 files changed

+47
-0
lines changed

examples/actuator-calls.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
{
3030
"name": "left",
3131
"unit": "radian",
32+
"type": "float",
3233
"rangeMinimum": 0.00,
3334
"rangeMaximum": 3.14,
3435
"rangeStep": 0.10,
@@ -38,6 +39,7 @@
3839
{
3940
"name": "right",
4041
"unit": "radian",
42+
"type": "float",
4143
"rangeMinimum": 0.00,
4244
"rangeMaximum": 3.14,
4345
"rangeStep": 0.10,

examples/sensor-calls.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
{
2727
"name": "X",
2828
"unit": "cm",
29+
"type": "float",
2930
"lastMeasured": "2014-06-23T18:25:43.511Z",
3031
"rangeMinimum": 0.00,
3132
"rangeMaximum": 100.00,
@@ -35,6 +36,7 @@
3536
{
3637
"name": "Y",
3738
"unit": "cm",
39+
"type": "float",
3840
"lastMeasured": "2014-06-23T18:25:43.511Z",
3941
"rangeMinimum": 0.00,
4042
"rangeMaximum": 100.00,
@@ -44,6 +46,7 @@
4446
{
4547
"name": "Z",
4648
"unit": "cm",
49+
"type": "float",
4750
"lastMeasured": "2014-06-23T18:25:43.511Z",
4851
"rangeMinimum": 0.00,
4952
"rangeMaximum": 100.00,
@@ -74,6 +77,7 @@
7477
"values": [
7578
{
7679
"name": "front",
80+
"type": "string",
7781
"lastMeasured": "2014-06-23T18:28:43.617Z",
7882
"updateFrequency": 10
7983
}

red-lab/examples/actuator-calls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
{
2929
"name": "angularRef",
3030
"unit": "degree",
31+
"type": "float",
3132
"rangeMinimum": 30,
3233
"rangeMaximum": 330
3334
}

red-lab/examples/sensor-calls.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
{
2828
"name": "angularPosition",
2929
"unit": "degree",
30+
"type": "string",
3031
"lastMeasured": "2014-06-23T18:25:43.511Z",
3132
"rangeMinimum": 30,
3233
"rangeMaximum": 330,
@@ -49,6 +50,7 @@
4950
"values": [
5051
{
5152
"name": "video",
53+
"type": "string",
5254
"lastMeasured": "2014-06-23T18:28:43.617Z",
5355
"updateFrequency": 10
5456
}

red-lab/metadata.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,25 @@
328328
"unit": {
329329
"type": "string"
330330
},
331+
"type": {
332+
"type": "string",
333+
"description": "The data type of that this configuration parameters expects, e.g. number or string",
334+
"enum": [
335+
"integer",
336+
"long",
337+
"float",
338+
"double",
339+
"string",
340+
"byte",
341+
"boolean",
342+
"date",
343+
"dateTime",
344+
"object", /* extended Swagger with JSON object type */
345+
"array",
346+
"any", /* extended Swagger with any type -- this represents any possible type */
347+
"binary" /* extended Swagger with binary type -- support for large binary config files */
348+
]
349+
},
331350
"rangeMinimum": {
332351
"type": "number",
333352
"format": "double"

spec/metadata.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,25 @@
384384
"unit": {
385385
"type": "string"
386386
},
387+
"type": {
388+
"type": "string",
389+
"description": "The data type of that this configuration parameters expects, e.g. number or string",
390+
"enum": [
391+
"integer",
392+
"long",
393+
"float",
394+
"double",
395+
"string",
396+
"byte",
397+
"boolean",
398+
"date",
399+
"dateTime",
400+
"object", /* extended Swagger with JSON object type */
401+
"array",
402+
"any", /* extended Swagger with any type -- this represents any possible type */
403+
"binary" /* extended Swagger with binary type -- support for large binary config files */
404+
]
405+
},
387406
"rangeMinimum": {
388407
"type": "number",
389408
"format": "double"

0 commit comments

Comments
 (0)