typesense-rust icon indicating copy to clipboard operation
typesense-rust copied to clipboard

Generate request/response structs from OpenAPI spec

Open kishorenc opened this issue 4 years ago • 1 comments

Description

We've a more or less recent Open API spec that was created as part of the Go client implementation here: https://github.com/typesense/typesense-go/blob/master/typesense/api/openapi.yml

I think it would be a good idea to generate the request/response classes/structs using an Open API client generator like Swagger. This would save a lot of time and ensure that we can keep them up-to-date easily across various client implementations.

What do you think @morenol @emmanuelantony2000 ?

kishorenc avatar May 29 '21 14:05 kishorenc

Yeah I would support this. Only thing blocking for me is, that we are using a custom transport implementation, which would work with wasm and hyper. AFAIK, Swagger codegen supports only a hyper impl. Correct me if I am wrong.

emmanuelantony2000 avatar May 31 '21 20:05 emmanuelantony2000