{
    "title": "fresh Order",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.controller.model.order.FreshOrder",
    "type": "object",
    "required": [
        "id",
        "workflowPath"
    ],
    "properties": {
        "id": {
            "type": "string"
        },
        "workflowPath": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "scheduledFor": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        },
        "arguments": {
            "description": "a map for arbitrary key-value pairs",
            "javaType": "com.sos.inventory.model.common.Variables",
            "type": "object",
            "additionalProperties": true
        },
        "positions": {
            "javaType": "com.sos.inventory.model.schedule.OrderPositions",
            "type": "object",
            "description": "start and end position",
            "properties": {
                "startPosition": {
                    "description": "Actually, each even item is a string, each odd item is an integer",
                    "type": "array",
                    "items": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "string"
                            }
                        ]
                    }
                },
                "endPositions": {
                    "type": "array",
                    "items": {
                        "description": "Actually, each even item is a string, each odd item is an integer",
                        "type": "array",
                        "items": {
                            "anyOf": [
                                {
                                    "type": "integer"
                                },
                                {
                                    "type": "string"
                                }
                            ]
                        }
                    }
                }
            }
        }
    },
    "additionalProperties": false
}