kean/Get

Problem with sending post requests

Closed this issue · 1 comments

Hey, I have a problem with the API client. I can't send requests with a post budy if one of the values is a boolean. Am I doing something wrong?
Bildschirm­foto 2023-03-03 um 00 04 11

kean commented

Hi, body has to be Encodable, and the heterogeneous dictionary isn't. I would suggest either passing a dictionary of type [String: String], which is Encodable, or creating a custom Encodable struct to represent these parameters (recommended).