{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "data_type": {
            "enum": [
                "licence"
            ]
        },
        "source_url": {
            "type": "string"
        },
        "confidence": {
            "type": "string"
        },
        "properties": {
            "type": "object",
            "properties": {
                "regulator": {
                    "description": "The regulating body that issued the licence",
                    "type": "string"
                },
                "category": {
                    "description": "The category of licence. Current possible values are: 'Financial','Business'",
                    "enum": [
                        "Financial",
                        "Business"
                    ]
                },
                "jurisdiction_code": {
                    "description": "The jurisdiction for which licence was issued",
                    "type": "string"
                },
                "licence_number": {
                    "description": "Licence number or code (can be null)",
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "jurisdiction_classification": {
                    "type": "array",
                    "description": "The local classification given by the regulator",
                    "minItems": 1
                },
                "oc_classification": {
                    "type": "array"
                }
            },
            "required": [
                "jurisdiction_code",
                "jurisdiction_classification",
                "category"
            ]
        }
    },
    "required": [
        "data_type",
        "properties",
        "source_url",
        "confidence"
    ]
}