Skip to content

Commit

Permalink
fix compile error on Scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dwickern committed Nov 4, 2023
1 parent f288569 commit f544cd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ trait ValidationWarning {
class ValidationModelConverter(warn: ValidationWarning => Unit) extends ModelConverter {
def resolveProperty(propertyType: Type, context: ModelConverterContext, annotations: Array[Annotation], chain: util.Iterator[ModelConverter]): Property = {
val hasHiddenAnnotation = Option(annotations)
.getOrElse(Array.empty)
.getOrElse(Array.empty[Annotation])
.exists {
case p: ApiModelProperty if p.hidden => true
case _ => false
Expand Down

0 comments on commit f544cd8

Please sign in to comment.