client_golang
client_golang copied to clipboard
Generate prom API from Swagger/OpenAPI
With the work done with @Hangzhi on https://github.com/thanos-io/thanos/issues/4102 I think we could replace current promclient with generated client or remove it completely (v2)
@bwplotka have you had any success with generating relatively idiomatic clients from OpenAPI spec? If so, what tools did you use?
No. I did not XD but did not try much... this has to be experimented with
@saswatamcode - this may be of interest to you since you have done something similar in https://github.com/observatorium/obsctl/ recently I think :)
Yes, we have had some success with generating clients using the Observatorium OpenAPI spec. I'd love to combine it with some of the work that is already done upstream (there are some open PRs) and maybe bring it here! 🙂 There are some types that we don't use but are necessary to add for a fully functional client here.