mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-22 03:20:29 +03:00
Forget to push proposal for issue #20
This commit is contained in:
parent
4616756f8e
commit
33d1b1ee1e
70
schemas/outfitting-v1.0-draft.json
Normal file
70
schemas/outfitting-v1.0-draft.json
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user