from pkg_resources import resource_string
import json
from typing import Dict


def schema() -> Dict:
    """schema returns the CDR V5 schema as a dictionary."""

    data = resource_string("ceeder.schemas", "cdr-v5.json")
    return json.loads(data)