(schema)
Ignore siblings of ``$ref`` if it is present.

    Otherwise, return all validators.

    Suitable for use with `create`'s ``applicable_validators`` argument.
Ignore siblings of ``$ref`` if it is present.
Ignore siblings of $ref if it is present .
def ignore_ref_siblings(schema):
    """
    Ignore siblings of ``$ref`` if it is present.

    Otherwise, return all validators.

    Suitable for use with `create`'s ``applicable_validators`` argument.
    """
    ref = schema.get("$ref")
    if ref is not None:
        return [("$ref", ref)]
    else:
        return schema.items()
def ignore_ref_siblings ( schema ) : ref = schema . get ( "$ref" ) if ref is not None : return [ ( "$ref" , ref ) ] else : return schema . items ( )