Revert "schemas: fcmaterials: Adjust to allow for CAPI-sourced data"

This reverts commit f4b9eab178.
This commit is contained in:
Athanasius committed 2022-09-02 13:19:46 +01:00
1 parent f4b9eab178
commit 61ef74492d
1 file changed
+22 -7
+22 -7
View File
@@ -33,15 +33,12 @@
"type" : "object",
"description" : "Contains all properties from the listed events in the client's journal minus the Localised strings and the properties marked below as 'disallowed'",
"additionalProperties" : false,
"required" : [ "timestamp", "data-source", "event", "MarketID", "CarrierID", "Items" ],
"required" : [ "timestamp", "event", "MarketID", "CarrierName", "CarrierID", "Items" ],
"properties" : {
"timestamp": {
"type" : "string",
"format" : "date-time"
},
"data-source": {
"enum" : [ "Journal", "CAPI", "CAPI-Journal" ]
},
"event" : {
"enum" : [ "FCMaterials" ]
},
@@ -69,10 +66,28 @@
},
"Items": {
"type" : [ "array", "object" ],
"type" : "array",
"required" : [ "id", "Name", "Price", "Stock", "Demand" ],
"properties" : {
"id" : {
"type" : "integer"
},
"Name": {
"type" : "string",
"minLength" : 1
},
"Price": {
"type" : "integer"
},
"Stock": {
"type" : "integer"
},
"Demand": {
"type" : "integer"
}
},
"patternProperties": {
"_Localised$" : { "$ref" : "#/definitions/disallowed" },
"locName" : { "$ref" : "#/definitions/disallowed" }
"_Localised$" : { "$ref" : "#/definitions/disallowed" }
}
}
}