When using the typescript client generated from the openapi schema, i get the following error when building my nuxtjs project
ERROR Error: Transform failed with 1 error: nitro 5:36:29 PM
/Users/robertwendt/dash/woodpecker-client/api.ts:4514:102: ERROR: "options" cannot be bound multiple times in the same parameter list
"options" cannot be bound multiple times in the same parameter list
the offending functions signature in the generated code
public reposRepoIdPipelinesPost (authorization: string, repoId: number, options: PipelineOptions, options: any = {}) : Promise<{ response: http.ClientResponse; body: Pipeline; }> {
Component
server
Describe the bug
When using the typescript client generated from the openapi schema, i get the following error when building my nuxtjs project
the offending functions signature in the generated code
I think that https://github.com/woodpecker-ci/woodpecker/pull/3885 should fix it but I'm not sure how to proceed (if at all)
Steps to reproduce
Install woodpecker with the following configuration
download openapi spec
generate typescript client using https://editor-next.swagger.io/
use the client in nuxt js app and call the function
reposRepoIdPipelinesPost
observe the error when building
Expected behavior
should just call the function as expected
System Info
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]