Commit ca302206 authored by canterafonsj's avatar canterafonsj
Browse files

Now GeoProperty

parent 97b290f4
......@@ -16,5 +16,12 @@
"closeTo": {
"type": "Relationship",
"object": "urn:ngsi-ld:Building:B1234"
},
"location": {
"type": "GeoProperty",
"value": {
"type":"Point",
"coordinates": [-8,44]
}
}
}
......@@ -95,6 +95,39 @@
}
}
]
},
"GeoProperty": {
"allOf": [
{
"$ref": "#/definitions/Commons"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "GeoProperty"
},
"value": {
"$ref": "https://raw.githubusercontent.com/Fiware/dataModels/master/geometry-schema.json"
}
},
"required": [
"type",
"value"
],
"additionalProperties": {
"anyOf": [
{
"$ref": "#/definitions/Property"
},
{
"$ref": "#/definitions/Relationship"
}
]
}
}
]
}
},
"type": "object",
......@@ -119,6 +152,9 @@
},
{
"$ref": "#/definitions/Relationship"
},
{
"$ref": "#/definitions/GeoProperty"
}
]
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment