src/swagger2x.py
def swagger_if_exist_all(json_data, if_value):
    """
    checks the if_value from the schema that is referenced in any path
    :param json_data: the swagger file as json struct
    :param if_value: value to be checked if it exist
    :return: True if found, False not found
    """
    for path, item in json_data["paths"].items():
        data = swagger_property_data_schema(json_data, path, "if")
        if if_value in data:
            return True
    return False

    checks the if_value from the schema that is referenced in any path
    :param json_data: the swagger file as json struct
    :param if_value: value to be checked if it exist
    :return: True if found, False not found
    
checks the if_value from the schema that is referenced in any path
checks the if_value from the schema that is referenced in any path
def swagger_if_exist_all(json_data, if_value):
    for path, item in json_data["paths"].items():
        data = swagger_property_data_schema(json_data, path, "if")
        if if_value in data:
            return True
    return False
def swagger_if_exist_all ( json_data , if_value ) : for path , item in json_data [ "paths" ] . items ( ) : data = swagger_property_data_schema ( json_data , path , "if" ) if if_value in data : return True return False
checks the if_value from the schema that is referenced in any path
checks the if_value from the schema that is referenced in any path
"""
    checks the if_value from the schema that is referenced in any path
    :param json_data: the swagger file as json struct
    :param if_value: value to be checked if it exist
    :return: True if found, False not found
    """
True if found, False not found
True if found False not found
json_data
the swagger file as json struct
the swagger file as json struct
if_value
value to be checked if it exist
value to be checked if it exist