#Bug in `bal openapi` with function parameters in PUT resource

1 messages · Page 1 of 1 (latest)

cyan python
#

Hi all, I encountered the following error when trying to generate an OpenAPI client for a service that had a PUT resource with function parameters. The error was resolved when I changed the parameter type to a record and @http:Payload.

potent stirrup
cyan python
#

I'm using 2201.4.1. And sorry, I can't share the code here. Something like the following would trigger the error though:
resource function put test(string testParam)

potent stirrup