{
    "title": "orderParameterisation",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.inventory.model.schedule.OrderParameterisation",
    "type": "object",
    "description": "Parameterisation with variable set for a schedule and optional start and end position",
    "properties": {
        "orderName": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 30
        },
        "variables": {
            "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": {
                    "anyOf": [
                        {
                            "description": "Actually, each even item is a string, each odd item is an integer",
                            "type": "array",
                            "minItems": 1,
                            "items": {
                                "anyOf": [
                                    {
                                        "type": "integer"
                                    },
                                    {
                                        "type": "string"
                                    }
                                ]
                            }
                        },
                        {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        }
                    ]
                },
                "endPositions": {
                    "type": "array",
                    "items": {
                        "anyOf": [
                            {
                                "description": "Actually, each even item is a string, each odd item is an integer",
                                "type": "array",
                                "minItems": 1,
                                "items": {
                                    "anyOf": [
                                        {
                                            "type": "integer"
                                        },
                                        {
                                            "type": "string"
                                        }
                                    ]
                                }
                            },
                            {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255,
                                "minLength": 1
                            }
                        ]
                    }
                },
                "blockPosition": {
                    "anyOf": [
                        {
                            "description": "Actually, each even item is a string, each odd item is an integer",
                            "type": "array",
                            "items": {
                                "anyOf": [
                                    {
                                        "type": "integer"
                                    },
                                    {
                                        "type": "string"
                                    }
                                ]
                            }
                        },
                        {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        }
                    ]
                }
            },
            "additionalProperties": false
        },
        "tags": {
            "type": "array",
            "uniqueItems": true,
            "items": {
                "type": "string",
                "pattern": "^[^<>]*$",
                "maxLength": 255,
                "minLength": 1
            }
        },
        "forceJobAdmission": {
            "type": "boolean"
        }
    },
    "additionalProperties": false
}