We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90f87f0 commit 0b314bdCopy full SHA for 0b314bd
1 file changed
openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/writer/java/BeanValidationFactory.kt
@@ -242,8 +242,7 @@ private fun DataType.shouldHaveValid(options: ApiOptions): Boolean {
242
is ModelDataType -> true
243
is ArrayDataType -> item is ModelDataType
244
is InterfaceDataType -> true
245
- is MappedCollectionDataType if options.beanValidationValidOnReactive -> multi
246
- is MappedCollectionDataType -> false
+ is MappedCollectionDataType -> options.beanValidationValidOnReactive && multi
247
is SourceDataType -> sourceDataType?.shouldHaveValid(options) ?: false
248
else -> false
249
}
0 commit comments