Skip to content

Commit 0b314bd

Browse files
committed
clean up
1 parent 90f87f0 commit 0b314bd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/writer/java/BeanValidationFactory.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ private fun DataType.shouldHaveValid(options: ApiOptions): Boolean {
242242
is ModelDataType -> true
243243
is ArrayDataType -> item is ModelDataType
244244
is InterfaceDataType -> true
245-
is MappedCollectionDataType if options.beanValidationValidOnReactive -> multi
246-
is MappedCollectionDataType -> false
245+
is MappedCollectionDataType -> options.beanValidationValidOnReactive && multi
247246
is SourceDataType -> sourceDataType?.shouldHaveValid(options) ?: false
248247
else -> false
249248
}

0 commit comments

Comments
 (0)