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
defmymarshal_collection_format(swagger_spec, param_spec, value):
"""For an array, apply the collection format and return the result. :type swagger_spec: :class:`bravado_core.spec.Spec` :param param_spec: spec of the parameter with 'type': 'array' :param value: array value of the parameter :return: transformed value as a string """result= []
collection_format=swagger_spec.deref(param_spec).get('items').get('collectionFormat', 'csv')
ifcollection_format=='multi':
# http client lib should handle thisreturnvaluesep=param.COLLECTION_FORMATS[collection_format]
ifany(isinstance(i, list) foriinvalue):
""" if list of lists, apply marshaling to each item in list"""foriinvalue:
result.append( sep.join(str(element) forelementini) )
else:
result=sep.join(str(element) forelementinvalue)
returnresult
The text was updated successfully, but these errors were encountered:
Fails to marshal lists of list arrays.
API response
Note presence of "[30000142" in integer.
Expected request
marshal_collection_format() appears to fail marshalling the list of lists at
bravado-core/bravado_core/param.py
Line 356 in 382db87
Monkeypatched with the following
The text was updated successfully, but these errors were encountered: