{
    "title": "Filing",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Filing represents a user submission against one or many proceedings.",
    "required": [
        "_metadata",
        "filing"
    ],
    "type": "object",
    "properties": {
        "_metadata": {
            "required": [
                "request",
                "response"
            ],
            "type": "object",
            "properties": {
                "request": {
                    "required": [
                        "ip",
                        "params",
                        "time",
                        "user"
                    ],
                    "type": "object",
                    "properties": {
                        "ip": {
                            "type": "string"
                        },
                        "params": {
                            "type": "null"
                        },
                        "user": {
                            "type": "null"
                        },
                        "time": {
                            "type": "string"
                        }
                    }
                },
                "response": {
                    "required": [
                        "time"
                    ],
                    "type": "object",
                    "properties": {
                        "time": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "filing": {
            "required": [
                "brief_comment_flag",
                "browser",
                "bureau_id_num",
                "confirmation_number",
                "date_accepted",
                "date_comment_period",
                "date_disseminated",
                "date_filed",
                "date_modified",
                "date_pn_ex_parte",
                "date_rcpt",
                "date_released",
                "date_reply_comment",
                "date_submission",
                "date_transmission_completed",
                "delagated_authority_number",
                "exparte_late_filed",
                "fcc_record",
                "file_numer",
                "filed_from",
                "filer",
                "flag_migrated_from_rips",
                "id_edocs",
                "id_proceeding",
                "id_ruleno",
                "id_trans",
                "id_user",
                "id_viewing_status",
                "path_info",
                "reg_flex_analysis",
                "remote_addr",
                "remote_host",
                "remote_ident",
                "remote_user",
                "report_number",
                "ruleno",
                "server_name",
                "small_business_impact",
                "subject",
                "submission_status",
                "submission_type",
                "total_page_count",
                "viewing_status"
            ],
            "type": "object",
            "properties": {
                "exparte_late_filed": {
                    "type": "boolean"
                },
                "date_disseminated": {
                    "type": "string"
                },
                "date_rcpt": {
                    "type": "string"
                },
                "total_page_count": {
                    "type": "integer"
                },
                "date_pn_ex_parte": {
                    "type": "null"
                },
                "file_numer": {
                    "type": "null"
                },
                "reg_flex_analysis": {
                    "type": "null"
                },
                "ruleno": {
                    "type": "null"
                },
                "id_viewing_status": {
                    "type": "null"
                },
                "subject": {
                    "type": "null"
                },
                "confirmation_number": {
                    "type": "string"
                },
                "remote_user": {
                    "type": "null"
                },
                "fcc_record": {
                    "type": "null"
                },
                "server_name": {
                    "type": "string"
                },
                "filed_from": {
                    "type": "string"
                },
                "viewing_status": {
                    "type": "string"
                },
                "date_filed": {
                    "type": "string"
                },
                "report_number": {
                    "type": "null"
                },
                "date_comment_period": {
                    "type": "null"
                },
                "id_edocs": {
                    "type": "null"
                },
                "filer": {
                    "required": [
                        "address",
                        "applicant_name",
                        "author_name",
                        "contact_email_id",
                        "contact_name",
                        "lawfirm_name"
                    ],
                    "type": "object",
                    "properties": {
                        "contact_email_id": {
                            "type": "string"
                        },
                        "author_name": {
                            "type": "string"
                        },
                        "lawfirm_name": {
                            "type": "string"
                        },
                        "address": {
                            "required": [
                                "city",
                                "country",
                                "id_state",
                                "line_1",
                                "line_2",
                                "postal_code"
                            ],
                            "type": "object",
                            "properties": {
                                "city": {
                                    "type": "string"
                                },
                                "country": {
                                    "type": "string"
                                },
                                "id_state": {
                                    "type": "string"
                                },
                                "postal_code": {
                                    "type": "string"
                                },
                                "line_1": {
                                    "type": "string"
                                },
                                "line_2": {
                                    "type": "null"
                                }
                            }
                        },
                        "contact_name": {
                            "type": "string"
                        },
                        "applicant_name": {
                            "type": "null"
                        }
                    }
                },
                "id_ruleno": {
                    "type": "null"
                },
                "remote_ident": {
                    "type": "null"
                },
                "submission_status": {
                    "required": [
                        "id",
                        "value"
                    ],
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "integer"
                        },
                        "value": {
                            "type": "null"
                        }
                    }
                },
                "path_info": {
                    "type": "string"
                },
                "delagated_authority_number": {
                    "type": "null"
                },
                "bureau_id_num": {
                    "type": "null"
                },
                "id_trans": {
                    "type": "integer"
                },
                "id_user": {
                    "type": "integer"
                },
                "date_transmission_completed": {
                    "type": "string"
                },
                "date_modified": {
                    "type": "null"
                },
                "date_accepted": {
                    "type": "null"
                },
                "remote_addr": {
                    "type": "string"
                },
                "brief_comment_flag": {
                    "type": "integer"
                },
                "date_reply_comment": {
                    "type": "null"
                },
                "date_submission": {
                    "type": "string"
                },
                "id_proceeding": {
                    "type": "integer"
                },
                "flag_migrated_from_rips": {
                    "type": "null"
                },
                "small_business_impact": {
                    "type": "null"
                },
                "date_released": {
                    "type": "null"
                },
                "remote_host": {
                    "type": "string"
                },
                "submission_type": {
                    "required": [
                        "id",
                        "value"
                    ],
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "integer"
                        },
                        "value": {
                            "type": "string"
                        }
                    }
                },
                "browser": {
                    "type": "string"
                }
            }
        }
    }
}