mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-19 01:57:40 +03:00
Merge pull request #204 from EDCD/fix/schemas/fcmaterials_json-items-array-contents
schemas/fcmaterials_json: Spec of in-array items needs to be correct
This commit is contained in:
commit
d263b7f929
@ -75,27 +75,30 @@
|
|||||||
|
|
||||||
"Items": {
|
"Items": {
|
||||||
"type" : "array",
|
"type" : "array",
|
||||||
"required" : [ "id", "Name", "Price", "Stock", "Demand" ],
|
"items": {
|
||||||
"properties" : {
|
"type" : "object",
|
||||||
"id" : {
|
"required" : [ "id", "Name", "Price", "Stock", "Demand" ],
|
||||||
"type" : "integer"
|
"properties" : {
|
||||||
|
"id" : {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"Name": {
|
||||||
|
"type" : "string",
|
||||||
|
"minLength" : 1
|
||||||
|
},
|
||||||
|
"Price": {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"Stock": {
|
||||||
|
"type" : "integer"
|
||||||
|
},
|
||||||
|
"Demand": {
|
||||||
|
"type" : "integer"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"Name": {
|
"patternProperties": {
|
||||||
"type" : "string",
|
"_Localised$" : { "$ref" : "#/definitions/disallowed" }
|
||||||
"minLength" : 1
|
|
||||||
},
|
|
||||||
"Price": {
|
|
||||||
"type" : "integer"
|
|
||||||
},
|
|
||||||
"Stock": {
|
|
||||||
"type" : "integer"
|
|
||||||
},
|
|
||||||
"Demand": {
|
|
||||||
"type" : "integer"
|
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"patternProperties": {
|
|
||||||
"_Localised$" : { "$ref" : "#/definitions/disallowed" }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user