{
    "title": "available positions for an add order",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "javaType": "com.sos.joc.model.order.BlockPosition",
    "extends": {
        "type": "object",
        "javaType": "com.sos.joc.model.order.Position",
        "properties": {
            "position": {
                "description": "Actually, each even item is a string, each odd item is an integer",
                "type": "array",
                "minItems": 1,
                "items": {
                    "anyOf": [
                        {
                            "type": "integer"
                        },
                        {
                            "type": "string"
                        }
                    ]
                }
            },
            "positionString": {
                "type": "string",
                "pattern": "^[^<>]*$",
                "maxLength": 255
            },
            "type": {
                "type": "string",
                "pattern": "^[^<>]*$",
                "maxLength": 255
            },
            "label": {
                "type": "string",
                "pattern": "^[^<>]*$",
                "maxLength": 255
            }
        },
        "additionalProperties": false
    },
    "properties": {
        "positions": {
            "type": "array",
            "uniqueItems": true,
            "items": {
                "type": "object",
                "javaType": "com.sos.joc.model.order.Position",
                "properties": {
                    "position": {
                        "description": "Actually, each even item is a string, each odd item is an integer",
                        "type": "array",
                        "minItems": 1,
                        "items": {
                            "anyOf": [
                                {
                                    "type": "integer"
                                },
                                {
                                    "type": "string"
                                }
                            ]
                        }
                    },
                    "positionString": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "type": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "label": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    }
                },
                "additionalProperties": false
            }
        }
    },
    "additionalProperties": false
}