Carapacik / swagger_parser

Dart package that takes an OpenApi definition file and generates REST clients based on retrofit and data classes for your project.
https://pub.dev/packages/swagger_parser
MIT License
87 stars 33 forks source link

Positional, not named parameter for body (requestBody) #232

Open StarProxima opened 1 month ago

StarProxima commented 1 month ago

Use case

This is how the method with body now (named parameter) is generated:

image

This is how it can be generated (positional parameter):

image

Proposal

We can change the generation to a positional parameter. This should be cleaner, since “body” doesn't really carry any semantics.

Vote in favor of this change with 👍 or 👎