{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "subject": {
            "type": "string",
            "maxLength": 255
        },
        "description": {
            "type": "string"
        },
        "category": {
            "type": "string",
            "maxLength": 255
        },
        "school_id": {
            "type": "string",
            "minLength": 36,
            "maxLength": 36
        },
        "status": {
            "description": "A value of enum TicketStatus.java",
            "enum": [
                1,
                2,
                3,
                4
            ]
        },
        "newComment": {
            "type": "string"
        },
        "attachments": {
            "type": "array",
            "additionalProperties": false,
            "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                    "id": {
                        "type": "string",
                        "minLength": 1
                    },
                    "name": {
                        "type": "string",
                        "minLength": 1
                    },
                    "size": {
                        "type": "integer",
                        "minimum": 1
                    }
                }
            }
        }
    }
}