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.
As of 3.0.3, RPC function calls don't work as
codegen.go
expectsbody
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 whenbody
is astring
expected by RPC functions. Tested, working.