Skip to content

Commit

Permalink
Recognise javax.validation.constraints validation library (#2568)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaMuravjov authored Aug 29, 2023
1 parent d1294d5 commit 1480d4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ object SpringModelUtils {
)
}

private val validationLibraries = listOf("jakarta.validation.constraints")
private val validationLibraries = listOf("javax.validation.constraints", "jakarta.validation.constraints")
private fun validationClassIds(simpleName: String) = getClassIdFromEachAvailablePackage(validationLibraries, simpleName)
.filter { utContext.classLoader.tryLoadClass(it.name) != null }

Expand Down

0 comments on commit 1480d4b

Please sign in to comment.