src/swagger2x.py
def convert_to_cplus_type(json_type):
    """
    convert the json type to c++ type
    :param json_type: the json type
    :return: c++ type.
    """
    if json_type in ["boolean"]:
        return "bool"
    if json_type in ["number"]:
        return "double"
    if json_type in ["integer"]:
        return "int"  # uint8_t ?
    if json_type in ["string"]:
        return "std::string"
    if json_type in ["object"]:
        return "OCRepresentation"
    return "void*"

    convert the json type to c++ type
    :param json_type: the json type
    :return: c++ type.
    
convert the json type to c++ type
convert the json type to c ++ type
def convert_to_cplus_type(json_type):
    if json_type in ["boolean"]:
        return "bool"
    if json_type in ["number"]:
        return "double"
    if json_type in ["integer"]:
        return "int"  
    if json_type in ["string"]:
        return "std::string"
    if json_type in ["object"]:
        return "OCRepresentation"
    return "void*"
def convert_to_cplus_type ( json_type ) : if json_type in [ "boolean" ] : return "bool" if json_type in [ "number" ] : return "double" if json_type in [ "integer" ] : return "int" if json_type in [ "string" ] : return "std::string" if json_type in [ "object" ] : return "OCRepresentation" return "void*"
convert the json type to c++ type
convert the json type to c ++ type
"""
    convert the json type to c++ type
    :param json_type: the json type
    :return: c++ type.
    """ # uint8_t ?

None
json_type
the json type
the json type