woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.07k stars 351 forks source link

Generate sdk from swagger #3053

Open qwerty287 opened 8 months ago

qwerty287 commented 8 months ago

Clear and concise description of the problem

as of https://github.com/woodpecker-ci/woodpecker/pull/2691

blocked by https://github.com/swaggo/swag/issues/386 -> https://github.com/woodpecker-ci/woodpecker/pull/3897

Suggested solution

auto-generate client from swagger docs so we don't have to do it manually

Alternative

No response

Additional context

No response

Validations

lafriks commented 8 months ago

I don't think that's good idea.. I would still like to keep a better organized SDK than auto generated one, why even bother than if it can be generated by everyone who needs it. Generating structures would probably help but not the methods 1:1 imho