{
    "title": "instructions",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "javaType": "com.sos.inventory.model.instruction.Instructions",
    "required": [
        "instructions"
    ],
    "properties": {
        "instructions": {
            "type": "array",
            "minItems": 1,
            "items": {
                "javaType": "com.sos.inventory.model.instruction.Instruction",
                "type": "object",
                "required": [
                    "TYPE"
                ],
                "properties": {
                    "TYPE": {
                        "javaType": "com.sos.inventory.model.instruction.InstructionType",
                        "type": "string",
                        "enum": [
                            "Execute.Named",
                            "If",
                            "Try",
                            "Fork",
                            "ForkList",
                            "Finish",
                            "Fail",
                            "Retry",
                            "Lock",
                            "Prompt",
                            "PostNotice",
                            "PostNotices",
                            "ExpectNotice",
                            "ExpectNotices",
                            "ConsumeNotices",
                            "ImplicitEnd",
                            "AddOrder",
                            "Cycle",
                            "StickySubagent",
                            "Options",
                            "Break"
                        ]
                    },
                    "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
                    },
                    "label": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "state": {
                        "javaType": "com.sos.inventory.model.instruction.InstructionState",
                        "type": "object",
                        "required": [
                            "severity",
                            "_text"
                        ],
                        "properties": {
                            "severity": {
                                "type": "integer"
                            },
                            "_text": {
                                "javaType": "com.sos.inventory.model.instruction.InstructionStateText",
                                "type": "string",
                                "enum": [
                                    "SKIPPED",
                                    "STOPPED",
                                    "STOPPED_AND_SKIPPED"
                                ]
                            }
                        },
                        "additionalProperties": false
                    }
                },
                "additionalProperties": false
            }
        }
    },
    "additionalProperties": false
}