{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://dcc.icgc.org/gene",
    "type": "object",
    "properties": {
        "_gene_id": {
            "id": "https://dcc.icgc.org/gene/_gene_id",
            "type": "string"
        },
        "_id": {
            "id": "https://dcc.icgc.org/gene/_id",
            "type": "object",
            "properties": {
                "time": {
                    "id": "https://dcc.icgc.org/gene/_id/time",
                    "type": "integer"
                },
                "inc": {
                    "id": "https://dcc.icgc.org/gene/_id/inc",
                    "type": "integer"
                },
                "machine": {
                    "id": "https://dcc.icgc.org/gene/_id/machine",
                    "type": "integer"
                },
                "timeSecond": {
                    "id": "https://dcc.icgc.org/gene/_id/timeSecond",
                    "type": "integer"
                },
                "new": {
                    "id": "https://dcc.icgc.org/gene/_id/new",
                    "type": "boolean"
                }
            },
            "additionalProperties": false
        },
        "biotype": {
            "id": "https://dcc.icgc.org/gene/biotype",
            "type": "string"
        },
        "canonical_transcript_id": {
            "id": "https://dcc.icgc.org/gene/canonical_transcript_id",
            "type": "string"
        },
        "chromosome": {
            "id": "https://dcc.icgc.org/gene/chromosome",
            "type": "string"
        },
        "description": {
            "id": "https://dcc.icgc.org/gene/description",
            "type": "string"
        },
        "end": {
            "id": "https://dcc.icgc.org/gene/end",
            "type": "integer"
        },
        "external_db_ids": {
            "id": "https://dcc.icgc.org/gene/external_db_ids",
            "type": "object",
            "properties": {
                "entrez_gene": {
                    "id": "https://dcc.icgc.org/gene/external_db_ids/entrez_gene",
                    "type": "array",
                    "items": {
                        "id": "https://dcc.icgc.org/gene/external_db_ids/entrez_gene/0",
                        "type": "string"
                    }
                },
                "hgnc": {
                    "id": "https://dcc.icgc.org/gene/external_db_ids/hgnc",
                    "type": "array",
                    "items": {
                        "id": "https://dcc.icgc.org/gene/external_db_ids/hgnc/0",
                        "type": "string"
                    }
                },
                "omim_gene": {
                    "id": "https://dcc.icgc.org/gene/external_db_ids/omim_gene",
                    "type": "array",
                    "items": {
                        "id": "https://dcc.icgc.org/gene/external_db_ids/omim_gene/0",
                        "type": "string"
                    }
                },
                "uniprotkb_swissprot": {
                    "id": "https://dcc.icgc.org/gene/external_db_ids/uniprotkb_swissprot",
                    "type": "array",
                    "items": {
                        "id": "https://dcc.icgc.org/gene/external_db_ids/uniprotkb_swissprot/0",
                        "type": "string"
                    }
                }
            },
            "additionalProperties": false
        },
        "name": {
            "id": "https://dcc.icgc.org/gene/name",
            "type": "string"
        },
        "project": {
            "id": "https://dcc.icgc.org/gene/project",
            "type": "array",
            "items": {
                "id": "https://dcc.icgc.org/gene/project/1",
                "type": "object",
                "properties": {
                    "_project_id": {
                        "id": "https://dcc.icgc.org/gene/project/1/_project_id",
                        "type": "string"
                    },
                    "_summary": {
                        "id": "https://dcc.icgc.org/gene/project/1/_summary",
                        "type": "object",
                        "properties": {
                            "_affected_donor_count": {
                                "id": "https://dcc.icgc.org/gene/project/1/_summary/_affected_donor_count",
                                "type": "integer"
                            },
                            "_available_data_type": {
                                "id": "https://dcc.icgc.org/gene/project/1/_summary/_available_data_type",
                                "type": "array",
                                "items": {
                                    "id": "https://dcc.icgc.org/gene/project/1/_summary/_available_data_type/1",
                                    "type": "string"
                                },
                                "additionalItems": false
                            }
                        },
                        "additionalProperties": false
                    }
                },
                "additionalProperties": false
            },
            "additionalItems": false
        },
        "sets": {
            "id": "https://dcc.icgc.org/gene/sets",
            "type": "array",
            "items": {
                "id": "https://dcc.icgc.org/gene/sets/0",
                "type": "object",
                "properties": {
                    "id": {
                        "id": "https://dcc.icgc.org/gene/sets/0/id",
                        "type": "string"
                    },
                    "name": {
                        "id": "https://dcc.icgc.org/gene/sets/0/name",
                        "type": "string"
                    },
                    "type": {
                        "id": "https://dcc.icgc.org/gene/sets/0/type",
                        "type": "string"
                    },
                    "qualifiers": {
                        "id": "https://dcc.icgc.org/gene/sets/0/qualifiers",
                        "type": "array",
                        "items": {
                            "id": "https://dcc.icgc.org/gene/sets/0/qualifiers/0",
                            "type": "string"
                        }
                    }
                },
                "additionalProperties": false
            },
            "additionalItems": false
        },
        "start": {
            "id": "https://dcc.icgc.org/gene/start",
            "type": "integer"
        },
        "strand": {
            "id": "https://dcc.icgc.org/gene/strand",
            "type": "integer"
        },
        "symbol": {
            "id": "https://dcc.icgc.org/gene/symbol",
            "type": "string"
        },
        "transcripts": {
            "id": "https://dcc.icgc.org/gene/transcripts",
            "type": "array",
            "items": {
                "id": "https://dcc.icgc.org/gene/transcripts/0",
                "type": "object",
                "properties": {
                    "biotype": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/biotype",
                        "type": "string"
                    },
                    "cdna_coding_end": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/cdna_coding_end",
                        "type": "integer"
                    },
                    "cdna_coding_start": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/cdna_coding_start",
                        "type": "integer"
                    },
                    "coding_region_end": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/coding_region_end",
                        "type": "integer"
                    },
                    "coding_region_start": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/coding_region_start",
                        "type": "integer"
                    },
                    "domains": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/domains",
                        "type": "array",
                        "items": {
                            "id": "https://dcc.icgc.org/gene/transcripts/0/domains/0",
                            "type": "object",
                            "properties": {
                                "start": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/domains/0/start",
                                    "type": "integer"
                                },
                                "end": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/domains/0/end",
                                    "type": "integer"
                                },
                                "description": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/domains/0/description",
                                    "type": "string"
                                },
                                "gff_source": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/domains/0/gff_source",
                                    "type": "string"
                                },
                                "hit_name": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/domains/0/hit_name",
                                    "type": "string"
                                },
                                "interpro_id": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/domains/0/interpro_id",
                                    "type": "string"
                                }
                            },
                            "additionalProperties": false
                        },
                        "additionalItems": false
                    },
                    "end": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/end",
                        "type": "integer"
                    },
                    "end_exon": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/end_exon",
                        "type": "integer"
                    },
                    "exons": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/exons",
                        "type": "array",
                        "items": {
                            "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0",
                            "type": "object",
                            "properties": {
                                "cdna_coding_end": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0/cdna_coding_end",
                                    "type": "integer"
                                },
                                "cdna_coding_start": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0/cdna_coding_start",
                                    "type": "integer"
                                },
                                "cdna_end": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0/cdna_end",
                                    "type": "integer"
                                },
                                "cdna_start": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0/cdna_start",
                                    "type": "integer"
                                },
                                "end": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0/end",
                                    "type": "integer"
                                },
                                "end_phase": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0/end_phase",
                                    "type": "integer"
                                },
                                "genomic_coding_end": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0/genomic_coding_end",
                                    "type": "integer"
                                },
                                "genomic_coding_start": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0/genomic_coding_start",
                                    "type": "integer"
                                },
                                "start": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0/start",
                                    "type": "integer"
                                },
                                "start_phase": {
                                    "id": "https://dcc.icgc.org/gene/transcripts/0/exons/0/start_phase",
                                    "type": "integer"
                                }
                            },
                            "additionalProperties": false
                        },
                        "additionalItems": false
                    },
                    "id": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/id",
                        "type": "string"
                    },
                    "is_canonical": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/is_canonical",
                        "type": "boolean"
                    },
                    "length": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/length",
                        "type": "integer"
                    },
                    "length_amino_acid": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/length_amino_acid",
                        "type": "integer"
                    },
                    "length_cds": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/length_cds",
                        "type": "integer"
                    },
                    "name": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/name",
                        "type": "string"
                    },
                    "number_of_exons": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/number_of_exons",
                        "type": "integer"
                    },
                    "seq_exon_end": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/seq_exon_end",
                        "type": "integer"
                    },
                    "seq_exon_start": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/seq_exon_start",
                        "type": "integer"
                    },
                    "start": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/start",
                        "type": "integer"
                    },
                    "start_exon": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/start_exon",
                        "type": "integer"
                    },
                    "translation_id": {
                        "id": "https://dcc.icgc.org/gene/transcripts/0/translation_id",
                        "type": "string"
                    }
                },
                "additionalProperties": false
            },
            "additionalItems": false
        }
    },
    "additionalProperties": false
}