Skip to content

Instantly share code, notes, and snippets.

@Juraci
Last active September 15, 2016 21:18
Show Gist options
  • Save Juraci/9ae1a249c059a2fa7e73c388f2926418 to your computer and use it in GitHub Desktop.
Save Juraci/9ae1a249c059a2fa7e73c388f2926418 to your computer and use it in GitHub Desktop.
json-schema
{
"type": "object",
"properties": {
"interval": {
"type": "number"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"speed": {
"type": "number"
},
"heading": {
"type": "integer"
},
"altitude": {
"type": "integer"
},
"machineStatus": {
"type": "integer"
},
"canVariables": {
"type": "object",
"properties": {
"PTO_SPEED_REAR": {
"type": "integer"
},
"FUEL_RATE": {
"type": "number"
},
"SCR_TANK_LEVEL": {
"type": "integer"
},
"ENGINE_LOAD": {
"type": "integer"
},
"ENGINE_SPEED": {
"type": "integer"
}
},
"required": [
"PTO_SPEED_REAR",
"FUEL_RATE",
"SCR_TANK_LEVEL",
"ENGINE_LOAD",
"ENGINE_SPEED"
]
}
},
"required": [
"latitude",
"longitude",
"speed",
"heading",
"altitude",
"machineStatus",
"canVariables"
]
}
}
},
"required": [
"interval",
"data"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment