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:
Athanasius 2022-12-10 11:09:03 +00:00 committed by GitHub
commit d263b7f929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,27 +75,30 @@
"Items": {
"type" : "array",
"required" : [ "id", "Name", "Price", "Stock", "Demand" ],
"properties" : {
"id" : {
"type" : "integer"
"items": {
"type" : "object",
"required" : [ "id", "Name", "Price", "Stock", "Demand" ],
"properties" : {
"id" : {
"type" : "integer"
},
"Name": {
"type" : "string",
"minLength" : 1
},
"Price": {
"type" : "integer"
},
"Stock": {
"type" : "integer"
},
"Demand": {
"type" : "integer"
}
},
"Name": {
"type" : "string",
"minLength" : 1
},
"Price": {
"type" : "integer"
},
"Stock": {
"type" : "integer"
},
"Demand": {
"type" : "integer"
"patternProperties": {
"_Localised$" : { "$ref" : "#/definitions/disallowed" }
}
},
"patternProperties": {
"_Localised$" : { "$ref" : "#/definitions/disallowed" }
}
}
}