mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-08 11:22:13 +03:00
Added minLength to prevent empty properties
This commit is contained in:
parent
fa9f06b9c4
commit
198031d740
@ -28,10 +28,12 @@
|
|||||||
"required": [ "systemName", "stationName", "timestamp", "commodities" ],
|
"required": [ "systemName", "stationName", "timestamp", "commodities" ],
|
||||||
"properties": {
|
"properties": {
|
||||||
"systemName": {
|
"systemName": {
|
||||||
"type" : "string"
|
"type" : "string",
|
||||||
|
"minLength" : 1
|
||||||
},
|
},
|
||||||
"stationName": {
|
"stationName": {
|
||||||
"type" : "string"
|
"type" : "string",
|
||||||
|
"minLength" : 1
|
||||||
},
|
},
|
||||||
"timestamp": {
|
"timestamp": {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
@ -47,10 +49,10 @@
|
|||||||
"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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user