Closed pjfanning closed 6 years ago
As of 2.0.0-rc3
@RequestBody
annotation can be applied to method parameter as detailed in wiki. If I get your point correctly, this is not sufficient for your needs, but you'd like to have it applicable also as field of @Operation
, is this right or does the parameter annotation suffice?
@frantuma I am asking for it be available on the operation too
Ok it makes sense, will update soon and will be part of next release
implemented in #2574
I maintain swagger-akka-http and this is a thin wrapper around swagger-jaxrs. This is a bit of a hack but has worked until now. I have some samples and have been trying to make them work with swagger 2.0.0 RCs. The removal of the requestBody parameter on
@ApiOperation
in 2.0.0-rc2 leaves me in a bind. There appears to be no way to annotate the requestBody other than via the Java method binding and up until now, we've used the swagger annotations instead of relying on creating an artificial method. Would it be possible to put back the ability to specify requestBody in the swagger annotations?The sample code I referred to above can be seen here:
https://github.com/pjfanning/swagger-akka-http-sample/blob/swagger-2.0.0/src/main/scala/com/example/akka/add/AddService.scala