You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that we need this parameter to be optional in the swagger e.g. "required": false.
If the parameter is defined as param[Seq[String]]("ids") then the swagger definition shows the correct type, e.g. array with items of type string, but the required property is then true.
The issue seems to be that during the swagger generation the type traversal of the Option[Seq[String]] stops at the Seq and doesn't continue to identify the actual type of the items.
The text was updated successfully, but these errors were encountered:
Apologies if this issue has been reported before but I couldn't find any issues open or closed covering this.
We have an optional CSV field on our API e.g.
param[Option[Seq[String]]]("ids")
However the parameter in the swagger is rendered as
instead of
Note that we need this parameter to be optional in the swagger e.g.
"required": false
.If the parameter is defined as
param[Seq[String]]("ids")
then the swagger definition shows the correct type, e.g. array with items of type string, but the required property is then true.The issue seems to be that during the swagger generation the type traversal of the
Option[Seq[String]]
stops at theSeq
and doesn't continue to identify the actual type of the items.The text was updated successfully, but these errors were encountered: