{
    "title": "Document",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "A Document is associated with user filings.",
    "required": [
        "document"
    ],
    "type": "object",
    "properties": {
        "document": {
            "required": [
                "attachment_id",
                "byte_size",
                "col_24",
                "comment",
                "date_modified",
                "date_ocr",
                "date_pdf_modified",
                "date_processed",
                "description",
                "document_id",
                "edocs_link",
                "file_description",
                "file_name",
                "file_type",
                "file_type_id",
                "flag_archived",
                "flag_conv_problem",
                "flag_migrated_from_rips",
                "id",
                "native_app_byte_size",
                "native_app_id_file_type",
                "ocr_flag",
                "official_title",
                "page_count",
                "page_count_display",
                "transmission_end_date",
                "transmission_start_date"
            ],
            "type": "object",
            "properties": {
                "comment": {
                    "type": "string"
                },
                "date_pdf_modified": {
                    "type": "null"
                },
                "attachment_id": {
                    "type": "null"
                },
                "file_type": {
                    "required": [
                        "file_extension",
                        "file_type_description",
                        "id",
                        "mime_type"
                    ],
                    "type": "object",
                    "properties": {
                        "file_extension": {
                            "type": "string"
                        },
                        "id": {
                            "type": "integer"
                        },
                        "mime_type": {
                            "type": "string"
                        },
                        "file_type_description": {
                            "type": "string"
                        }
                    }
                },
                "file_name": {
                    "type": "null"
                },
                "page_count": {
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "description": {
                    "type": "string"
                },
                "date_ocr": {
                    "type": "string"
                },
                "col_24": {
                    "type": "null"
                },
                "native_app_byte_size": {
                    "type": "integer"
                },
                "transmission_end_date": {
                    "type": "string"
                },
                "edocs_link": {
                    "type": "null"
                },
                "file_type_id": {
                    "type": "integer"
                },
                "ocr_flag": {
                    "type": "string"
                },
                "date_processed": {
                    "type": "string"
                },
                "flag_archived": {
                    "type": "boolean"
                },
                "file_description": {
                    "type": "null"
                },
                "document_id": {
                    "type": "integer"
                },
                "transmission_start_date": {
                    "type": "string"
                },
                "native_app_id_file_type": {
                    "type": "integer"
                },
                "date_modified": {
                    "type": "null"
                },
                "flag_conv_problem": {
                    "type": "null"
                },
                "byte_size": {
                    "type": "integer"
                },
                "page_count_display": {
                    "type": "string"
                },
                "official_title": {
                    "type": "null"
                },
                "flag_migrated_from_rips": {
                    "type": "boolean"
                }
            }
        }
    }
}