Skip to content

Commit

Permalink
Serialize boolean parameters to lowercase (#73)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Benkevich <[email protected]>
  • Loading branch information
anton-b and Anton Benkevich authored Aug 7, 2020
1 parent 3618973 commit 2118c55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion almdrlib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,10 @@ def serialize_query_parameter(cls, style, explode, name, datatype, value):
# Implicitly 'form' style
delimiter = ","
return {name: delimiter.join(value)}
elif datatype == OpenAPIKeyWord.BOOLEAN:
return {name: str(value).lower()}
else:
return {name: value}
return None


class Operation(object):
Expand Down

0 comments on commit 2118c55

Please sign in to comment.