swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
The problem stems from that the generated API appends all query parameters regardless of value, not allowing me to omit ones which the upstream integration wants a key with value, or no key at all.
The above query.append_pair should allow me to NOT serialise None or empty strings. The python generator solves this by using kwargs, which are obviously not serialised if not present, but with Rust, each generated API function requires all the arguments, so we need a way to ignore None or "" args.
Description
Some API's don't like to receive a key with a value of None on the URL example of producer URL where "cursor" should be left out as it is None.
http://URL/API/msgVpns?count=10&cursor=&where=msgVpnName==testvpn&select=*
The problem stems from that the generated API appends all query parameters regardless of value, not allowing me to omit ones which the upstream integration wants a key with value, or no key at all.
The above query.append_pair should allow me to NOT serialise None or empty strings. The python generator solves this by using kwargs, which are obviously not serialised if not present, but with Rust, each generated API function requires all the arguments, so we need a way to ignore None or "" args.
Swagger-codegen version
2.4.2
Command line used for generation