{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "version": "1.0.0",
    "type": "object",
    "additionalProperties": false,
    "description": "JSON Schema for applications that are accepted have been added to the day list",
    "required": [
        "data"
    ],
    "properties": {
        "data": {
            "type": "object",
            "properties": {
                "status": {
                    "type": "string",
                    "enum": ["COMPLETED"]
                },
                "hmlr_reference": {
                    "type": "string"
                },
                "application_request_id": {
                    "type": "string"
                },
                "was_subject_to_early_completion": {
                    "type": "boolean"
                },
                "documents": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "type": {
                                "type": "object",
                                "properties": {
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    }
                                }
                            },
                            "created_at": {
                                "type": "string",
                                "format": "datetime"
                            },
                            "download_id": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        }
    }
}