{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "definitions": {},
    "properties": {
        "category": {
            "description": "Category of licence",
            "enum": [
                "Financial",
                "Business"
            ],
            "type": "string"
        },
        "company_jurisdiction": {
            "description": "Jurisdiction where company is based",
            "minLength": 1,
            "type": "string"
        },
        "company_name": {
            "description": "Name of the company holding the licence",
            "minLength": 1,
            "type": "string"
        },
        "confidence": {
            "description": "Confidence in accuracy of data",
            "enum": [
                "HIGH",
                "MEDIUM",
                "LOW"
            ],
            "type": "string"
        },
        "end_date": {
            "_format": "date",
            "type": "string"
        },
        "jurisdiction_classification": {
            "description": "Description of how regulator classifies licence",
            "type": [
                "string",
                "array"
            ]
        },
        "licence_jurisdiction": {
            "description": "Jurisdiction for which licence is issued",
            "minLength": 1,
            "type": "string"
        },
        "licence_number": {
            "description": "Licence number or code",
            "type": "string"
        },
        "regulator": {
            "description": "The regulating body that issued the licence",
            "type": "string"
        },
        "retrieved_at": {
            "_format": "date",
            "type": "string"
        },
        "sample_date": {
            "_format": "date",
            "description": "Date on which this fact was known to be true",
            "type": "string"
        },
        "source_url": {
            "description": "Place where this fact can be verified",
            "minLength": 1,
            "type": "string"
        },
        "start_date": {
            "_format": "date",
            "type": "string"
        },
        "status": {
            "description": "Status of the licence",
            "type": "string"
        }
    },
    "required": [
        "source_url",
        "sample_date",
        "company_name",
        "company_jurisdiction"
    ],
    "type": "object"
}