src/swagger2x.py
def sdf_property_object(json_data, level):
    """
    Take the property values from a resource type and reformat for sdf
    :param json_data: sdfProperty's json_data from resource type
    :param level: "top" = top level, ignore filtered out types, "sub" = subsequent level, no filter required
    :return: json formatted string

    """
    if(level == "top"):
        iter_json_data = swagger_properties_filtered(
            json_data, sdf_return_path_info(json_data, "path")).items()
    else:
        # json_data passed in is what's required for iteration below, embedded property blocks
        iter_json_data = json_data.items()

    output = ""
    for i, (property_name, property_data) in enumerate(iter_json_data):
        output += "\"" + property_name + "\": {"
        # new name field
        output += sdf_properties_block(property_data)
        output += "}"
        if i + 1 < len(iter_json_data):
            output += ","
    return output

    Take the property values from a resource type and reformat for sdf
    :param json_data: sdfProperty's json_data from resource type
    :param level: "top" = top level, ignore filtered out types, "sub" = subsequent level, no filter required
    :return: json formatted string

    
Take the property values from a resource type and reformat for sdf
Take the property values from a resource type and reformat for sdf
def sdf_property_object(json_data, level):
    if(level == "top"):
        iter_json_data = swagger_properties_filtered(
            json_data, sdf_return_path_info(json_data, "path")).items()
    else:
        iter_json_data = json_data.items()
    output = ""
    for i, (property_name, property_data) in enumerate(iter_json_data):
        output += "\"" + property_name + "\": {"
        output += sdf_properties_block(property_data)
        output += "}"
        if i + 1 < len(iter_json_data):
            output += ","
    return output
def sdf_property_object ( json_data , level ) : if ( level == "top" ) : iter_json_data = swagger_properties_filtered ( json_data , sdf_return_path_info ( json_data , "path" ) ) . items ( ) else : iter_json_data = json_data . items ( ) output = "" for i , ( property_name , property_data ) in enumerate ( iter_json_data ) : output += "\"" + property_name + "\": {" output += sdf_properties_block ( property_data ) output += "}" if i + 1 < len ( iter_json_data ) : output += "," return output
Take the property values from a resource type and reformat for sdf
Take the property values from a resource type and reformat for sdf
"""
    Take the property values from a resource type and reformat for sdf
    :param json_data: sdfProperty's json_data from resource type
    :param level: "top" = top level, ignore filtered out types, "sub" = subsequent level, no filter required
    :return: json formatted string

    """ # json_data passed in is what's required for iteration below, embedded property blocks
 # new name field

json formatted string
json formatted string
json_data
sdfProperty's json_data from resource type
sdfProperty ' s json_data from resource type
level
"top" = top level, ignore filtered out types, "sub" = subsequent level, no filter required
" top " = top level ignore filtered out types " sub " = subsequent level no filter required