schemas/fcmaterials_json: Spec of in-array items needs to be correct

python `jsonschema` raises no errors when you erroneously forget to wrap
the specification of each "array" member in `"items": { ... }`.

Closes #203
This commit is contained in:
Athanasius 2022-12-10 11:03:16 +00:00
parent feed1c27ec
commit 90bf38a451
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

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" }
}
}
}