mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-20 02:27:40 +03:00
Merge pull request #4 from AnthorNet/master
Added minLength to prevent empty properties
This commit is contained in:
commit
e3d37d30cb
@ -28,10 +28,12 @@
|
||||
"required": [ "systemName", "stationName", "timestamp", "commodities" ],
|
||||
"properties": {
|
||||
"systemName": {
|
||||
"type" : "string"
|
||||
"type" : "string",
|
||||
"minLength" : 1
|
||||
},
|
||||
"stationName": {
|
||||
"type" : "string"
|
||||
"type" : "string",
|
||||
"minLength" : 1
|
||||
},
|
||||
"timestamp": {
|
||||
"type" : "string",
|
||||
@ -47,10 +49,10 @@
|
||||
"additionalProperties" : false,
|
||||
"required" : [ "name", "buyPrice", "supply", "sellPrice", "demand" ],
|
||||
"properties" : {
|
||||
"name": {
|
||||
"type" : "string",
|
||||
"minLength" : 1
|
||||
},
|
||||
"name": {
|
||||
"type" : "string",
|
||||
"minLength" : 1
|
||||
},
|
||||
"buyPrice": {
|
||||
"type": "integer",
|
||||
"description": "Price to buy from the market"
|
||||
|
Loading…
x
Reference in New Issue
Block a user