src/swagger2x.py
def swagger_if_exist(json_data, input_path, if_value):
    """
    checks the if_value from the schema that is referenced by the path in get (or post)
    :param json_data: the swagger file as json struct
    :param input_path: the path to which the if should be queried
    :param if_value: value to be checked if it exist
    :return: True if found, False not found
    """
    data = swagger_property_data_schema(json_data, input_path, "if")
    if if_value in data:
        return True
    return False

    checks the if_value from the schema that is referenced by the path in get (or post)
    :param json_data: the swagger file as json struct
    :param input_path: the path to which the if should be queried
    :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 by the path in get (or post)
checks the if_value from the schema that is referenced by the path in get ( or post )
def swagger_if_exist(json_data, input_path, if_value):
    data = swagger_property_data_schema(json_data, input_path, "if")
    if if_value in data:
        return True
    return False
def swagger_if_exist ( json_data , input_path , if_value ) : data = swagger_property_data_schema ( json_data , input_path , "if" ) if if_value in data : return True return False
checks the if_value from the schema that is referenced by the path in get (or post)
checks the if_value from the schema that is referenced by the path in get ( or post )
"""
    checks the if_value from the schema that is referenced by the path in get (or post)
    :param json_data: the swagger file as json struct
    :param input_path: the path to which the if should be queried
    :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
input_path
the path to which the if should be queried
the path to which the if should be queried
if_value
value to be checked if it exist
value to be checked if it exist