oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

[Feature Request] Generate Go client for WebAssembly

Open tigerinus opened this issue 3 years ago • 0 comments

In a recent requirement, I need to build a WebAssembly in Go to be consumed by frontend.

As part of the WebAssembly it needs to call OpenAPI at some backend server.

It'd be nice to generate a client in this scenario, i.e. OpenAPI operations are automatically defined as JavaScript function via

js.Global().Set("SomeOperationInOpenAPI", js.FuncOf(someFuncForTheOperation))

Thanks.

tigerinus avatar Oct 21 '22 21:10 tigerinus