(name)
return json.loads(data)
Load a schema from ./schemas/``name``.json and return it.
Load a schema from ./schemas/``name``.json and return it.
Load a schema from . / schemas / name . json and return it .
def load_schema(name):
    """
    Load a schema from ./schemas/``name``.json and return it.
    """

    path = resources.files(__package__).joinpath(f"schemas/{name}.json")
    data = path.read_text(encoding="utf-8")
    return json.loads(data)
def load_schema ( name ) : path = resources . files ( __package__ ) . joinpath ( f"schemas/{name}.json" ) data = path . read_text ( encoding = "utf-8" ) return json . loads ( data )