cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

[Dropped] Simplify generated methods with function overloads #6

Closed luisfpg closed 5 years ago

luisfpg commented 5 years ago

Now we always generate both FooApi.operation and FooApi.operation$Response. Instead, we can use function overloads to generate a single operation that can return either the body or the response. For operations that declare multiple response content types, we could also add the expected content type as argument, and generate the correct result type.