Custom class dataType don't show up in Model Schema
Hi, I'm trying to setup Swagger and I have an issue to display the correct Swagger Model Schema for my class. It actually has a custom class parameter and while I can see it in the Swagger Model, I can't in the schema.
I have these 2 case classes :
@ApiModel
case class Address(@ApiModelProperty(dataType = "integer", value = "ID of the address", required = true) id: Option[Int]) {}
and
@ApiModel
case class User(@ApiModelProperty(dataType = "models.Address", value = "Address of the user") address: Option[Address]) {}
And now my issue is that I'd like to see in the example JSON in the Model Schema tab but it's not while it's in the Model tab like this :
address (#/definitions/Address, optional): Address of the user
Is it normal? Thanks!