heroiclabs / nakama-defold

Defold client for Nakama server.
https://heroiclabs.com
Apache License 2.0
74 stars 12 forks source link

Fix parsing body definitions of RPC functions in Swagger data #53

Closed uncleNight closed 2 years ago

uncleNight commented 2 years ago

As of 3.0.3, RPC function calls don't work as codegen.go expects body to always be an object with a custom schema reference - however, RPF functions expect a string with JSON in it so the conditions aren't met.

This PR fixes codegen.go to adapt to cases when body is a string expected by RPC functions. Tested, working.