(joined_type_defs: str)
return joined_type_defs
Remove custom schema directives from federation.
Remove custom schema directives from federation.
Remove custom schema directives from federation .
def purge_schema_directives(joined_type_defs: str) -> str:
    """Remove custom schema directives from federation."""
    joined_type_defs = _r_directive_definition.sub("", joined_type_defs)
    joined_type_defs = _r_directive.sub(
        lambda m: m.group(1) if m.group(2) in _allowed_directives else "",
        joined_type_defs,
    )
    return joined_type_defs
def purge_schema_directives ( joined_type_defs : str ) -> str : joined_type_defs = _r_directive_definition . sub ( "" , joined_type_defs ) joined_type_defs = _r_directive . sub ( lambda m : m . group ( 1 ) if m . group ( 2 ) in _allowed_directives else "" , joined_type_defs , ) return joined_type_defs