You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a parameter (e.g. uid) is an optional request parameter of REST call Get normalized messages, you can pass it as None (Python's null equivalent) when using the corresponding python sdk method (mentioned above), .
For example,
api_response = api_instance.get_normalized_messages(None, sdid, None, None, None, None, 2, start_date, end_date, None);
This would still results in type error, for example, since None cannot convert to an int type for certain types, for example. However, some luck - the workaround would be to not include the parameter at all within the method call. For example:
api_instance.get_normalized_messages()
After more investigation, the problem appears to be 2 things: 1) type checking 2) and when None is set as a named argument, the request is not omitting the request parameter.
jonathanpaek
changed the title
Optional parameters are being required in generated code
Optional named parameters of value None
Sep 19, 2016
may affect the other SDKs as well.
looks like swagger is is already taking a look as it doesn't yet support optional params for all languages yet
swagger-api/swagger-codegen#3665
The text was updated successfully, but these errors were encountered: