Skip to content

Commit a28e523

Browse files
committed
WIP make create invitaiton use booleans
* conditional formatting if boolean exists * transformed to JSON/Swagger true/false if exists/not None
1 parent 17ce573 commit a28e523

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aries_cloudcontroller/controllers/connections.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ async def create_invitation(
8383
params["alias"] = alias
8484
if auto_accept:
8585
params["auto_accept"] = auto_accept
86-
if public:
86+
if public in [True, False]:
87+
public = str(public).lower()
8788
params["public"] = public
88-
if multi_use:
89+
if multi_use in [True, False]:
90+
multi_use = str(multi_use).lower()
8991
params["multi_use"] = multi_use
9092

9193
invite_details = await self.admin_POST(

0 commit comments

Comments
 (0)