Skip to content

Commit

Permalink
Merge pull request #548 from iheartradio/javakky/scaladoc-apply-option
Browse files Browse the repository at this point in the history
fix: Apply Scaladoc comments to Option type fields as well
  • Loading branch information
Javakky-pxv authored Mar 1, 2023
2 parents 089db76 + 0ed9a44 commit b947d9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ object SwaggerParameterMapper {
}
),
modelQualifier = modelQualifier,
customMappings = customMappings
customMappings = customMappings,
description = description
)
asRequired.update(required = false, nullable = true, default = asRequired.default)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ case class Subject(name: String)
/**
* @param name e.g. Sunday, Monday, TuesDay...
*/
case class DayOfWeek(name: String)
case class DayOfWeek(name: Option[String])

case class PolymorphicContainer(item: PolymorphicItem)
trait PolymorphicItem
Expand Down

0 comments on commit b947d9c

Please sign in to comment.