src/swagger2x.py
def query_ref(parse_tree, parameter_ref, value):
    """
    find the reference of the query value
    :param parse_tree: full json parse tree of the swagger file
    :param parameter_ref: reference value to be found
    :param value: key in the reference to be found
    :return:
    """
    keys = parameter_ref.split("/")
    index = len(keys)
    parameter_block = get_value_by_path_name(
        parse_tree, "parameters", keys[index - 1])
    try:
        return parameter_block[value]
    except:
        return ""

    find the reference of the query value
    :param parse_tree: full json parse tree of the swagger file
    :param parameter_ref: reference value to be found
    :param value: key in the reference to be found
    :return:
    
find the reference of the query value
find the reference of the query value
def query_ref(parse_tree, parameter_ref, value):
    keys = parameter_ref.split("/")
    index = len(keys)
    parameter_block = get_value_by_path_name(
        parse_tree, "parameters", keys[index - 1])
    try:
        return parameter_block[value]
    except:
        return ""
def query_ref ( parse_tree , parameter_ref , value ) : keys = parameter_ref . split ( "/" ) index = len ( keys ) parameter_block = get_value_by_path_name ( parse_tree , "parameters" , keys [ index - 1 ] ) try : return parameter_block [ value ] except : return ""
find the reference of the query value
find the reference of the query value
"""
    find the reference of the query value
    :param parse_tree: full json parse tree of the swagger file
    :param parameter_ref: reference value to be found
    :param value: key in the reference to be found
    :return:
    """
None
parse_tree
full json parse tree of the swagger file
full json parse tree of the swagger file
parameter_ref
reference value to be found
reference value to be found
value
key in the reference to be found
key in the reference to be found