def jsonapi_type_schema(type_name):
    """Generate a Cerberus schema for validating a JSONAPI type.

    :param type_name: The name of the type
    :type type_name: ``string``
    :return: A Cerberus schema for the JSONAPI type
    """
    return {'type': 'string',
            'required': True,
            'allowed': [type_name],
            'empty': False}