Last active
September 15, 2016 21:18
-
-
Save Juraci/9ae1a249c059a2fa7e73c388f2926418 to your computer and use it in GitHub Desktop.
json-schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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