From 2118c551ff381836cb8184b5e563358a499eebf6 Mon Sep 17 00:00:00 2001 From: Anton B Date: Fri, 7 Aug 2020 16:00:07 +0100 Subject: [PATCH] Serialize boolean parameters to lowercase (#73) Co-authored-by: Anton Benkevich --- almdrlib/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/almdrlib/client.py b/almdrlib/client.py index 3b1a0d4..1e4fd3e 100644 --- a/almdrlib/client.py +++ b/almdrlib/client.py @@ -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):