open-match icon indicating copy to clipboard operation
open-match copied to clipboard

openapi all in one json

Open dzmitry-lahoda opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

When I generate several clients from swagger APIs, I get duplicate definition of Match and Ticket, and other types. I have manually map these and write extensions/methods.

Describe the solution you'd like

I seems can generate protobuf types which all share same types, so may be it is possible either to link one swagger json in other or merge all jsons from https://github.com/googleforgames/open-match/tree/main/api into one big swagger.

Describe alternatives you've considered

I do not use GRPC anywhere in the project. Agones API is also HTTP.

Additional context I am on C# and use NSwag

dzmitry-lahoda avatar Jul 18 '21 19:07 dzmitry-lahoda

can try https://stackoverflow.com/questions/54586137/how-do-i-combine-multiple-openapi-3-specification-files-together

dzmitry-lahoda avatar Aug 04 '21 08:08 dzmitry-lahoda