Skip to content

Instantly share code, notes, and snippets.

@fgalan
Created April 8, 2019 10:17
Show Gist options
  • Save fgalan/cee93f557c8c1428a963adde2ad6970e to your computer and use it in GitHub Desktop.
Save fgalan/cee93f557c8c1428a963adde2ad6970e to your computer and use it in GitHub Desktop.
Examples wrongly identified as invalid with draft NGSIv2 JSON Schema
{
"id": "foo",
"type": "geo:distance",
"A": {
"type": "Number",
"value": 4
}
}
{
"id": "foo",
"type": "bar",
"A": {
"type": "Number",
"value": 4,
"metadata": {
"B": {
"value": {
"type": "Point",
"coordinates": [125.6, 10.1]
},
"type": "geo:json"
}
}
}
}
{
"id": "foo",
"type": "bar",
"A": {
"type": "Number",
"value": 4,
"metadata": {
"B": {
"value": 23,
"type": "geo:distance"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment