That is, Option[String] is correctly mapped to string but other Option[Long], Option[Float] and Option[Boolean] are mapped to object which is not correct. They should be mapped to number and boolean.
And then, in the UI, examples for this type are not well presented.
NB: I haven't tested if it's specific to implicit and/or body params or not.
Hi,
Having an implicit body parameter which definition looks like this:
And declaration:
Result in the following
swagger.json
file:That is,
Option[String]
is correctly mapped tostring
but otherOption[Long]
,Option[Float]
andOption[Boolean]
are mapped toobject
which is not correct. They should be mapped tonumber
andboolean
.And then, in the UI, examples for this type are not well presented.
NB: I haven't tested if it's specific to implicit and/or body params or not.