mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-17 07:41:01 +03:00
Fix indent
This commit is contained in:
parent
33d1b1ee1e
commit
fe854c1bad
@ -1,91 +1,96 @@
|
|||||||
{
|
{
|
||||||
"$schema" : "http://json-schema.org/draft-04/schema#",
|
"$schema" : "http://json-schema.org/draft-04/schema#",
|
||||||
"id" : "http://schemas.elite-markets.net/eddn/commodity/2#",
|
"id" : "http://schemas.elite-markets.net/eddn/commodity/2#",
|
||||||
"type" : "object",
|
"type" : "object",
|
||||||
"additionalProperties" : false,
|
"additionalProperties" : false,
|
||||||
"required" : [ "$schemaRef", "header", "message" ],
|
"required": [ "$schemaRef", "header", "message" ],
|
||||||
"properties" : {
|
"properties": {
|
||||||
"$schemaRef" : { "type": "string" },
|
"$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", "commodities" ],
|
|
||||||
"properties": {
|
|
||||||
"systemName": {
|
|
||||||
"type" : "string",
|
|
||||||
"minLength" : 1
|
|
||||||
},
|
},
|
||||||
"stationName": {
|
"header": {
|
||||||
"type" : "string",
|
"type" : "object",
|
||||||
"minLength" : 1
|
"additionalProperties" : true,
|
||||||
},
|
"required" : [ "uploaderID", "softwareName", "softwareVersion" ],
|
||||||
"timestamp": {
|
"properties" : {
|
||||||
"type" : "string",
|
"uploaderID": {
|
||||||
"format" : "date-time"
|
"type" : "string"
|
||||||
},
|
},
|
||||||
"commodities": {
|
"softwareName": {
|
||||||
"type" : "array",
|
"type" : "string"
|
||||||
"minItems" : 1,
|
},
|
||||||
"items" : {
|
"softwareVersion": {
|
||||||
"oneOf": [
|
"type" : "string"
|
||||||
{
|
},
|
||||||
"type" : "object",
|
"gatewayTimestamp": {
|
||||||
"additionalProperties" : false,
|
"type" : "string",
|
||||||
"required" : [ "name", "buyPrice", "supply", "sellPrice", "demand" ],
|
"format" : "date-time",
|
||||||
"properties" : {
|
"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."
|
||||||
"name": {
|
|
||||||
"type" : "string",
|
|
||||||
"minLength" : 1
|
|
||||||
},
|
|
||||||
"buyPrice": {
|
|
||||||
"type": "integer",
|
|
||||||
"description": "Price to buy from the market"
|
|
||||||
},
|
|
||||||
"supply": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"supplyLevel": {
|
|
||||||
"$ref": "#/definitions/levelType"
|
|
||||||
},
|
|
||||||
"sellPrice": {
|
|
||||||
"type": "integer",
|
|
||||||
"description": "Price to sell to the market"
|
|
||||||
},
|
|
||||||
"demand": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"demandLevel": {
|
|
||||||
"$ref": "#/definitions/levelType"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
}
|
"message": {
|
||||||
|
"type" : "object",
|
||||||
|
"additionalProperties" : false,
|
||||||
|
"required" : [ "systemName", "stationName", "timestamp", "commodities" ],
|
||||||
|
"properties" : {
|
||||||
|
"systemName": {
|
||||||
|
"type" : "string",
|
||||||
|
"minLength" : 1
|
||||||
|
},
|
||||||
|
"stationName": {
|
||||||
|
"type" : "string",
|
||||||
|
"minLength" : 1
|
||||||
|
},
|
||||||
|
"timestamp": {
|
||||||
|
"type" : "string",
|
||||||
|
"format" : "date-time"
|
||||||
|
},
|
||||||
|
"commodities": {
|
||||||
|
"type" : "array",
|
||||||
|
"minItems" : 1,
|
||||||
|
"items" : {
|
||||||
|
"oneOf" : [
|
||||||
|
{
|
||||||
|
"type" : "object",
|
||||||
|
"additionalProperties" : false,
|
||||||
|
"required" : [ "name", "buyPrice", "supply", "sellPrice", "demand" ],
|
||||||
|
"properties" : {
|
||||||
|
"name": {
|
||||||
|
"type" :"string",
|
||||||
|
"minLength" :1
|
||||||
|
},
|
||||||
|
"buyPrice": {
|
||||||
|
"type" :"integer",
|
||||||
|
"description" :"Price to buy from the market"
|
||||||
|
},
|
||||||
|
"supply": {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"supplyLevel": {
|
||||||
|
"$ref" : "#/definitions/levelType"
|
||||||
|
},
|
||||||
|
"sellPrice": {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Price to sell to the market"
|
||||||
|
},
|
||||||
|
"demand":{
|
||||||
|
"type":"integer"
|
||||||
|
},
|
||||||
|
"demandLevel":{
|
||||||
|
"$ref":"#/definitions/levelType"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"definitions": {
|
||||||
|
"levelType": {
|
||||||
|
"enum": [ "Low", "Med", "High" ]
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
"definitions" : {
|
|
||||||
"levelType" : {
|
|
||||||
"enum": ["Low", "Med", "High"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user