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
101 stars 47 forks source link

@Body is generated with the name as a string parameter #53

Closed elenaferr0 closed 1 year ago

elenaferr0 commented 1 year ago

In swagger v2 generation, the @Body is generated with the name as string parameter which is not accepted by the annotation. Example:

  @PUT('/v7/test')
  Future<ABC> test({
    @Body('obj') required Object object, // the body annotation does not accept the 'obj' string 
  });