Skip to content

Commit cd40d08

Browse files
authored
Merge pull request #964 from jason-fox/revert-945-revert-942-task/default_attribute_value_null_instead_blank
Fixing requests
2 parents 2db114b + 4da1d61 commit cd40d08

File tree

3 files changed

+123
-123
lines changed

3 files changed

+123
-123
lines changed
Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
11
[
2-
{
3-
"@context": "http://context.json-ld",
4-
"attr_name": {
5-
"type": "Property",
6-
"value": null
7-
},
8-
"bootstrapServer": {
9-
"type": "Property",
10-
"value": {
11-
"@type": "Address",
12-
"@value": "127.0.0.1"
13-
}
14-
},
15-
"commandAttr_info": {
16-
"type": "Property",
17-
"value": {
18-
"@type": "commandResult",
19-
"@value": " "
20-
}
21-
},
22-
"commandAttr_status": {
23-
"type": "Property",
24-
"value": {
25-
"@type": "commandStatus",
26-
"@value": "UNKNOWN"
27-
}
28-
},
29-
"hardcodedAttr": {
30-
"type": "Property",
31-
"value": {
32-
"@type": "hardcodedType",
33-
"@value": "hardcodedValue"
34-
}
35-
},
36-
"id": "urn:ngsi-ld:TheLightType:TheFirstLight",
37-
"status": {
38-
"type": "Property",
39-
"value": true
40-
},
41-
"type": "TheLightType",
42-
"wheel1_info": {
43-
"type": "Property",
44-
"value": {
45-
"@type": "commandResult",
46-
"@value": " "
47-
}
48-
},
49-
"wheel1_status": {
50-
"type": "Property",
51-
"value": {
52-
"@type": "commandStatus",
53-
"@value": "UNKNOWN"
54-
}
55-
}
2+
{
3+
"@context": "http://context.json-ld",
4+
"id": "urn:ngsi-ld:TheLightType:TheFirstLight",
5+
"type": "TheLightType",
6+
"attr_name": {
7+
"type": "Property",
8+
"value": null
9+
},
10+
"status": {
11+
"type": "Property",
12+
"value": false
13+
},
14+
"hardcodedAttr": {
15+
"type": "Property",
16+
"value": {
17+
"@type": "hardcodedType",
18+
"@value": "hardcodedValue"
19+
}
20+
},
21+
"bootstrapServer": {
22+
"type": "Property",
23+
"value": {
24+
"@type": "Address",
25+
"@value": "127.0.0.1"
26+
}
27+
},
28+
"commandAttr_status": {
29+
"type": "Property",
30+
"value": {
31+
"@type": "commandStatus",
32+
"@value": "UNKNOWN"
33+
}
34+
},
35+
"commandAttr_info": {
36+
"type": "Property",
37+
"value": {
38+
"@type": "commandResult",
39+
"@value": " "
40+
}
41+
},
42+
"wheel1_status": {
43+
"type": "Property",
44+
"value": {
45+
"@type": "commandStatus",
46+
"@value": "UNKNOWN"
47+
}
48+
},
49+
"wheel1_info": {
50+
"type": "Property",
51+
"value": {
52+
"@type": "commandResult",
53+
"@value": " "
54+
}
5655
}
56+
}
5757
]
Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
11
[
2-
{
3-
"@context": "http://context.json-ld",
4-
"attr_name": {
5-
"type": "Property",
6-
"value": null
7-
},
8-
"bootstrapServer": {
9-
"type": "Property",
10-
"value": {
11-
"@type": "Address",
12-
"@value": "127.0.0.1"
13-
}
14-
},
15-
"commandAttr_info": {
16-
"type": "Property",
17-
"value": {
18-
"@type": "commandResult",
19-
"@value": " "
20-
}
21-
},
22-
"commandAttr_status": {
23-
"type": "Property",
24-
"value": {
25-
"@type": "commandStatus",
26-
"@value": "UNKNOWN"
27-
}
28-
},
29-
"hardcodedAttr": {
30-
"type": "Property",
31-
"value": {
32-
"@type": "hardcodedType",
33-
"@value": "hardcodedValue"
34-
}
35-
},
36-
"id": "urn:ngsi-ld:SensorMachine:TheFirstLight",
37-
"status": {
38-
"type": "Property",
39-
"value": true
40-
},
41-
"type": "SensorMachine",
42-
"wheel1_info": {
43-
"type": "Property",
44-
"value": {
45-
"@type": "commandResult",
46-
"@value": " "
47-
}
48-
},
49-
"wheel1_status": {
50-
"type": "Property",
51-
"value": {
52-
"@type": "commandStatus",
53-
"@value": "UNKNOWN"
54-
}
55-
}
2+
{
3+
"@context": "http://context.json-ld",
4+
"id": "urn:ngsi-ld:SensorMachine:TheFirstLight",
5+
"type": "SensorMachine",
6+
"attr_name": {
7+
"type": "Property",
8+
"value": null
9+
},
10+
"status": {
11+
"type": "Property",
12+
"value": false
13+
},
14+
"hardcodedAttr": {
15+
"type": "Property",
16+
"value": {
17+
"@type": "hardcodedType",
18+
"@value": "hardcodedValue"
19+
}
20+
},
21+
"bootstrapServer": {
22+
"type": "Property",
23+
"value": {
24+
"@type": "Address",
25+
"@value": "127.0.0.1"
26+
}
27+
},
28+
"commandAttr_status": {
29+
"type": "Property",
30+
"value": {
31+
"@type": "commandStatus",
32+
"@value": "UNKNOWN"
33+
}
34+
},
35+
"commandAttr_info": {
36+
"type": "Property",
37+
"value": {
38+
"@type": "commandResult",
39+
"@value": " "
40+
}
41+
},
42+
"wheel1_status": {
43+
"type": "Property",
44+
"value": {
45+
"@type": "commandStatus",
46+
"@value": "UNKNOWN"
47+
}
48+
},
49+
"wheel1_info": {
50+
"type": "Property",
51+
"value": {
52+
"@type": "commandResult",
53+
"@value": " "
54+
}
5655
}
56+
}
5757
]
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[
2-
{
3-
"@context": "http://context.json-ld",
4-
"dimming": {
5-
"type": "Property",
6-
"value": {
7-
"@type": "Percentage",
8-
"@value": null
9-
}
10-
},
11-
"id": "urn:ngsi-ld:Light:light1",
12-
"state": {
13-
"type": "Property",
14-
"value": true
15-
},
16-
"type": "Light"
2+
{
3+
"@context": "http://context.json-ld",
4+
"id": "urn:ngsi-ld:Light:light1",
5+
"type": "Light",
6+
"state": {
7+
"type": "Property",
8+
"value": false
9+
},
10+
"dimming": {
11+
"type": "Property",
12+
"value": {
13+
"@type": "Percentage",
14+
"@value": null
15+
}
1716
}
17+
}
1818
]

0 commit comments

Comments
 (0)