(instance, schema)
Return the set of additional properties for the given ``instance``.

    Weeds out properties that should have been validated by ``properties`` and
    / or ``patternProperties``.

    Assumes ``instance`` is dict-like already.
Return the set of additional properties for the given ``instance``.
Return the set of additional properties for the given instance .
def find_additional_properties(instance, schema):
    """
    Return the set of additional properties for the given ``instance``.

    Weeds out properties that should have been validated by ``properties`` and
    / or ``patternProperties``.

    Assumes ``instance`` is dict-like already.
    """

    properties = schema.get("properties", {})
    patterns = "|".join(schema.get("patternProperties", {}))
    for property in instance:
        if property not in properties:
            if patterns and re.search(patterns, property):
                continue
            yield property
def find_additional_properties ( instance , schema ) : properties = schema . get ( "properties" , { } ) patterns = "|" . join ( schema . get ( "patternProperties" , { } ) ) for property in instance : if property not in properties : if patterns and re . search ( patterns , property ) : continue yield property