{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/lightspeed/main/json-schema/lightspeed-shift-collection-schema.json", "title": "Shift Collection", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/lightspeed-shifts-api-openapi.yml#/components/schemas/ShiftCollection", "properties": { "data": { "description": "An array of Shifts wrapped in top level `data` object.", "items": { "$ref": "#/$defs/Shift" }, "type": "array" }, "version": { "$ref": "#/$defs/Version" } }, "type": "object", "$defs": { "Shift": { "properties": { "created_at": { "description": "Creation timestamp in UTC.", "format": "date-time", "type": "string" }, "id": { "description": "Auto-generated object ID.", "format": "uuid", "type": "string" }, "retailer_id": { "description": "The ID of the retailer where the shift was started.", "format": "uuid", "type": "string" }, "time_in": { "description": "The time the shift started.", "format": "date-time", "type": "string" }, "time_out": { "description": "The time the shift ended.", "format": "date-time", "type": "string" }, "updated_at": { "description": "Updated at timestamp in UTC.", "format": "date-time", "type": "string" }, "updated_by": { "description": "The ID of the user that updated the shift.", "format": "uuid", "type": "string" }, "user_id": { "description": "The ID of the user who started the shift.", "format": "uuid", "type": "string" }, "version": { "description": "Auto-incrementing object version number.", "format": "int64", "type": "integer" } }, "type": "object" }, "Version": { "description": "An object containing the highest and lowest version numbers for all items of the returned collection.", "properties": { "max": { "description": "Highest version number of the payload, or `null` when the result set is empty.", "format": "int64", "type": [ "integer", "null" ] }, "min": { "description": "Lowest version number of the payload, or `null` when the result set is empty.", "format": "int64", "type": [ "integer", "null" ] } }, "required": [ "max", "min" ], "type": "object" } } }