I have this case class that's extending an abstract class:
@ApiModel(description = "A price for an offer.")
case class OfferPrice(
override val amount: Double,
override val taxAmount: Double,
override val taxRate: Option[Double]
) extends Price(amount, taxAmount, taxRate)
abstract class Price(
@(ApiModelProperty@field)(description = "The amount.") val amount: Double,
@(ApiModelProperty@field)(description = "The tax amount.") val taxAmount: Double,
@(ApiModelProperty@field)(description = "The tax rate.") val taxRate: Option[Double]
)
Exciting stuff, right? My problem is that the definition in the generated swagger.json file looks like this:
"OfferPrice": {
"properties": {
}
}
It's not including the fields from the abstract class. How can I include those fields as well?