Converts a config object to a swagger API dict.
tfx.orchestration.launcher.container_common.to_swagger_dict(
config: Any
) -> Any
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
Args |
config
|
The config object. It can be one of List, Dict or a Swagger code
generated object, which has a attribute_map attribute.
|
Returns |
The original object with all Swagger generated object replaced with
dictionary object.
|