tfx.orchestration.launcher.container_common.to_swagger_dict

View source on GitHub

Converts a config object to a swagger API dict.

This utility method recursively converts swagger code generated configs into a valid swagger dictionary. This method is trying to workaround a bug (https://github.com/swagger-api/swagger-codegen/issues/8948) from swagger generated code

config The config object. It can be one of List, Dict or a Swagger code generated object, which has a attribute_map attribute.

The original object with all Swagger generated object replaced with dictionary object.