0down votefavorite
<https://stackoverflow.com/questions/48157206/how-to-parse-swagger-client-code#>
I am trying to create an expression using this commented out info from the
method media_query in a Swagger client:
`:param list[str] extended_filter: A special filter which is of the form
'extendedFilter=Name;Value' which allows you to filter by extended metadata.`
This part of the method is also relevant:
`all_params = ['query', 'external_id', 'before', 'after',
'extended_filter', 'on_or_after_date', 'on_or_before_date', 'sort_order',
'limit']
and so is:
`if 'extended_filter' in params:
query_params.append(('extendedFilter', params['extended_filter']))
I've tried a few different ways, including
`response =
mediaApi.media_query(**"extendedFilter":"callInformation":"validQ1")`
and (**{"extended_filter":{"callInformation":"validQ1"}})
I've tried following the syntax exactly with:
`(**'"extendedFilter"="callInformation";"validQ1"')
which gives me the error:
`TypeError: media_query() argument after ** must be a mapping, not str`
Can anyone tell me how to construct this?
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.