{
    "$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
        },
        "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
                    }
                }
            }
        }
    },
    "required": [
        "subject",
        "description",
        "category",
        "school_id"
    ]
}