Forget to push proposal for issue #20

This commit is contained in:
AnthorNet 2015-06-12 18:51:38 +02:00
parent 4616756f8e
commit 33d1b1ee1e

View File

@ -0,0 +1,70 @@
{
"$schema" : "http://json-schema.org/draft-04/schema#",
"id" : "http://schemas.elite-markets.net/eddn/outfitting/1#",
"type" : "object",
"additionalProperties" : false,
"required" : [ "$schemaRef", "header", "message" ],
"properties" : {
"$schemaRef" : { "type": "string" },
"header" : {
"type" : "object",
"additionalProperties" : true,
"required": [ "uploaderID", "softwareName", "softwareVersion" ],
"properties" : {
"uploaderID" : { "type": "string" },
"softwareName" : { "type": "string" },
"softwareVersion" : { "type": "string" },
"gatewayTimestamp" : {
"type": "string",
"format": "date-time",
"description": "Timestamp upon receipt at the gateway. If present, this property will be overwritten by the gateway; submitters are not intended to populate this property."
}
}
},
"message": {
"type": "object",
"additionalProperties": false,
"required": [ "systemName", "stationName", "timestamp", "modules" ],
"properties": {
"systemName": {
"type" : "string",
"minLength" : 1
},
"stationName": {
"type" : "string",
"minLength" : 1
},
"timestamp": {
"type" : "string",
"format" : "date-time"
},
"modules": {
"type" : "array",
"minItems" : 1,
"items" : {
"oneOf": [
{
"type" : "object",
"additionalProperties" : false,
"required" : [ "name" ],
"properties" : {
"name": {
"type" : "string",
"minLength" : 1
},
"fdId": {
"type" : "number",
"multipleOf" : 1.0,
"minimum": 1
}
}
}
]
}
}
}
}
}
}