def schema(schema_id):
    """
    Decorator to assign a schema name to an endpoint handler.
    """
    def decorator(handler):
        handler.__schema_id__ = schema_id
        return handler
    return decorator