import json


def load_json_schema(filename=None):
    """ Loads the given schema file """

    if filename is None:
        return

    with open(filename) as schema_file:
        schema = json.loads(schema_file.read())

    return schema