{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://dcc.icgc.org/drug-centric",
    "type": "object",
    "properties": {
        "atc_codes": {
            "id": "https://dcc.icgc.org/drug-centric/atc_codes",
            "type": "array",
            "items": {
                "id": "https://dcc.icgc.org/drug-centric/atc_codes/0",
                "type": "object",
                "properties": {
                    "atc_level5_codes": {
                        "id": "https://dcc.icgc.org/drug-centric/atc_codes/0/atc_level5_codes",
                        "type": "string"
                    },
                    "code": {
                        "id": "https://dcc.icgc.org/drug-centric/atc_codes/0/code",
                        "type": "string"
                    },
                    "description": {
                        "id": "https://dcc.icgc.org/drug-centric/atc_codes/0/description",
                        "type": "string"
                    }
                },
                "additionalProperties": false
            },
            "additionalItems": false
        },
        "cancer_trial_count": {
            "id": "https://dcc.icgc.org/drug-centric/cancer_trial_count",
            "type": "integer"
        },
        "drug_class": {
            "id": "https://dcc.icgc.org/drug-centric/drug_class",
            "type": "string"
        },
        "external_references": {
            "id": "https://dcc.icgc.org/drug-centric/external_references",
            "type": "object",
            "properties": {
                "chembl": {
                    "id": "https://dcc.icgc.org/drug-centric/external_references/chembl",
                    "type": "array",
                    "items": {
                        "id": "https://dcc.icgc.org/drug-centric/external_references/chembl/0",
                        "type": "string"
                    },
                    "additionalItems": false
                },
                "drugbank": {
                    "id": "https://dcc.icgc.org/drug-centric/external_references/drugbank",
                    "type": "array",
                    "items": {
                        "id": "https://dcc.icgc.org/drug-centric/external_references/drugbank/0",
                        "type": "string"
                    },
                    "additionalItems": false
                }
            },
            "additionalProperties": false
        },
        "genes": {
            "id": "https://dcc.icgc.org/drug-centric/genes",
            "type": "array",
            "items": {
                "id": "https://dcc.icgc.org/drug-centric/genes/1",
                "type": "object",
                "properties": {
                    "ensembl_gene_id": {
                        "id": "https://dcc.icgc.org/drug-centric/genes/1/ensembl_gene_id",
                        "type": "string"
                    },
                    "uniprot": {
                        "id": "https://dcc.icgc.org/drug-centric/genes/1/uniprot",
                        "type": "string"
                    }
                },
                "additionalProperties": false
            },
            "additionalItems": false
        },
        "inchikey": {
            "id": "https://dcc.icgc.org/drug-centric/inchikey",
            "type": "string"
        },
        "large_image_url": {
            "id": "https://dcc.icgc.org/drug-centric/large_image_url",
            "type": "string"
        },
        "name": {
            "id": "https://dcc.icgc.org/drug-centric/name",
            "type": "string"
        },
        "small_image_url": {
            "id": "https://dcc.icgc.org/drug-centric/small_image_url",
            "type": "string"
        },
        "synonyms": {
            "id": "https://dcc.icgc.org/drug-centric/synonyms",
            "type": "array",
            "items": {
                "id": "https://dcc.icgc.org/drug-centric/synonyms/1",
                "type": "string"
            },
            "additionalItems": false
        },
        "trials": {
            "id": "https://dcc.icgc.org/drug-centric/trials",
            "type": "array",
            "items": {
                "id": "https://dcc.icgc.org/drug-centric/trials/1",
                "type": "object",
                "properties": {
                    "code": {
                        "id": "https://dcc.icgc.org/drug-centric/trials/1/code",
                        "type": "string"
                    },
                    "conditions": {
                        "id": "https://dcc.icgc.org/drug-centric/trials/1/conditions",
                        "type": "array",
                        "items": {
                            "id": "https://dcc.icgc.org/drug-centric/trials/1/conditions/0",
                            "type": "object",
                            "properties": {
                                "name": {
                                    "id": "https://dcc.icgc.org/drug-centric/trials/1/conditions/0/name",
                                    "type": "string"
                                },
                                "short_name": {
                                    "id": "https://dcc.icgc.org/drug-centric/trials/1/conditions/0/short_name",
                                    "type": "string"
                                }
                            },
                            "additionalProperties": false
                        },
                        "additionalItems": false
                    },
                    "description": {
                        "id": "https://dcc.icgc.org/drug-centric/trials/1/description",
                        "type": "string"
                    },
                    "drug_mappings": {
                        "id": "https://dcc.icgc.org/drug-centric/trials/1/drug_mappings",
                        "type": "array",
                        "items": {
                            "id": "https://dcc.icgc.org/drug-centric/trials/1/drug_mappings/1",
                            "type": "object",
                            "properties": {
                                "description": {
                                    "id": "https://dcc.icgc.org/drug-centric/trials/1/drug_mappings/1/description",
                                    "type": "string"
                                },
                                "ids": {
                                    "id": "https://dcc.icgc.org/drug-centric/trials/1/drug_mappings/1/ids",
                                    "type": "array",
                                    "items": {
                                        "id": "https://dcc.icgc.org/drug-centric/trials/1/drug_mappings/1/ids/0",
                                        "type": "string"
                                    },
                                    "additionalItems": false
                                }
                            },
                            "additionalProperties": false
                        },
                        "additionalItems": false
                    },
                    "phase_name": {
                        "id": "https://dcc.icgc.org/drug-centric/trials/1/phase_name",
                        "type": "string"
                    },
                    "start_date": {
                        "id": "https://dcc.icgc.org/drug-centric/trials/1/start_date",
                        "type": "string"
                    },
                    "status_name": {
                        "id": "https://dcc.icgc.org/drug-centric/trials/1/status_name",
                        "type": "string"
                    }
                },
                "additionalProperties": false
            },
            "additionalItems": false
        },
        "zinc_id": {
            "id": "https://dcc.icgc.org/drug-centric/zinc_id",
            "type": "string"
        }
    },
    "additionalProperties": false,
    "required": [
        "zinc_id"
    ]
}