{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://seedtactics.com/schemas/allocate", "title": "SeedTactic Allocation JSON", "type": "object", "oneOf": [ { "$ref": "#/$defs/AllocateRequest" } ], "$defs": { "AllocateRequest": { "type": "object", "required": ["ScheduleId", "StartUTC", "EndUTC", "FlexPlan", "FillMethod"], "properties": { "ScheduleId": { "type": "string" }, "StartUTC": { "type": "string", "format": "date-time" }, "EndUTC": { "type": "string", "format": "date-time" }, "PreviousSchedule": { "$ref": "/schemas/fms-insight#/components/schemas/PlannedSchedule" }, "CurrentStatus": { "$ref": "/schemas/fms-insight#/components/schemas/CurrentStatus" }, "UnscheduledBookings": { "type": "array", "items": { "$ref": "/schemas/orders#/$defs/Booking" } }, "ScheduledParts": { "type": "array", "items": { "$ref": "/schemas/orders#/$defs/ScheduledPartWithoutBooking" } }, "FlexPlan": { "$ref": "/schemas/flexplan#/$defs/FlexPlan" }, "FillMethod": { "$ref": "#/$defs/BookingFillMethod" }, "SeparateSchedulePerDay": { "type": "boolean" } } }, "BookingFillMethod": { "type": "string", "enum": ["FillInAnyOrder", "FillOnlyByDueDate"] }, "AllocateResult": { "type": "object", "required": ["Jobs", "SimStations", "NewExtraParts"], "properties": { "Jobs": { "type": "array", "items": { "$ref": "/schemas/fms-insight#/components/schemas/Job" } }, "SimStations": { "type": "array", "items": { "$ref": "/schemas/fms-insight#/components/schemas/SimulatedStationUtilization" } }, "NewExtraParts": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" } }, "SimStationsForExecutionOfCurrentStatus": { "type": "array", "items": { "$ref": "/schemas/fms-insight#/components/schemas/SimulatedStationUtilization" } }, "AllocationWarning": { "type": "array", "items": { "type": "string" } }, "DebugData": { "type": "object", "additionalProperties": { "type": "string" } } } } } }