swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

dataTypeClass not translating into a schema $ref #175

Open joantune opened 6 years ago

joantune commented 6 years ago

Hi!

So, as I found out - an annotation like:

@ApiImplicitParams(value =  {
            @ApiImplicitParam(name = "body",
                    value = "RancherStack to create",
                    required = true,
                    dataTypeClass = RancherStack.class,
                    paramType = "body"
            )})

Doesn't generate a spec like:

"schema" : {
              "$ref" : "#/definitions/RancherStack"
            }

However - specifying the whole Classname on dataType works as intended.

This seems like a bug - and an easy one to solve at that