Fix indent

This commit is contained in:
AnthorNet 2015-06-15 09:07:45 +02:00
parent 33d1b1ee1e
commit fe854c1bad

View File

@ -3,31 +3,37 @@
"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" : { },
"header": {
"type" : "object", "type" : "object",
"additionalProperties" : true, "additionalProperties" : true,
"required": [ "uploaderID", "softwareName", "softwareVersion" ], "required" : [ "uploaderID", "softwareName", "softwareVersion" ],
"properties" : { "properties" : {
"uploaderID" : { "type": "string" }, "uploaderID": {
"softwareName" : { "type": "string" }, "type" : "string"
"softwareVersion" : { "type": "string" }, },
"gatewayTimestamp" : { "softwareName": {
"type": "string", "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." "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": { "message": {
"type": "object", "type" : "object",
"additionalProperties": false, "additionalProperties" : false,
"required": [ "systemName", "stationName", "timestamp", "commodities" ], "required" : [ "systemName", "stationName", "timestamp", "commodities" ],
"properties": { "properties" : {
"systemName": { "systemName": {
"type" : "string", "type" : "string",
"minLength" : 1 "minLength" : 1
@ -44,35 +50,35 @@
"type" : "array", "type" : "array",
"minItems" : 1, "minItems" : 1,
"items" : { "items" : {
"oneOf": [ "oneOf" : [
{ {
"type" : "object", "type" : "object",
"additionalProperties" : false, "additionalProperties" : false,
"required" : [ "name", "buyPrice", "supply", "sellPrice", "demand" ], "required" : [ "name", "buyPrice", "supply", "sellPrice", "demand" ],
"properties" : { "properties" : {
"name": { "name": {
"type" : "string", "type" :"string",
"minLength" : 1 "minLength" :1
}, },
"buyPrice": { "buyPrice": {
"type": "integer", "type" :"integer",
"description": "Price to buy from the market" "description" :"Price to buy from the market"
}, },
"supply": { "supply": {
"type": "integer" "type" : "integer"
}, },
"supplyLevel": { "supplyLevel": {
"$ref": "#/definitions/levelType" "$ref" : "#/definitions/levelType"
}, },
"sellPrice": { "sellPrice": {
"type": "integer", "type" : "integer",
"description": "Price to sell to the market" "description" : "Price to sell to the market"
}, },
"demand": { "demand":{
"type": "integer" "type":"integer"
}, },
"demandLevel": { "demandLevel":{
"$ref": "#/definitions/levelType" "$ref":"#/definitions/levelType"
} }
} }
} }
@ -82,10 +88,9 @@
} }
} }
}, },
"definitions": {
"definitions" : { "levelType": {
"levelType" : { "enum": [ "Low", "Med", "High" ]
"enum": ["Low", "Med", "High"]
} }
} }
} }