yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Object field

movilitero opened this issue · comments

Hello.

I have a definition as Any. As it has its complications i changed it manually to a [String: Any] dictionary.
When an int with value 1 or 0 is encoded, its converted into boolean.

Best regards

I will need more context to help you @movilitero

if you have a type: object it will be translated as [String: Any]. If you add ["MyId": 1] to the dictionary, when you send it it will be sent as MyId: true

Is this gonna help you ? #229

ezoic increase your site revenue