def METHOD_NAME(type):
    """
    Returns all specs of the given type as a dictionary name -> spec. A spec is a dictionary containing the
    name, the filename, and the json content of a given schema.
    """
    specs = {}
    for schema_dir in SCHEMAS:
        sub_specs = SCHEMAS[schema_dir].get(type)
        if sub_specs:
            specs.update(sub_specs)
    return specs