Skip to content

Commit ac59fb8

Browse files
committed
more robust version check
1 parent f3d472a commit ac59fb8

File tree

1 file changed

+1
-1
lines changed
  • openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/processor/mapping/version

1 file changed

+1
-1
lines changed

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/processor/mapping/version/Mapping.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ data class Mapping(
1616
) {
1717

1818
fun isV2(): Boolean {
19-
return getSafeVersion().substring(1).toInt() > 1
19+
return getSafeVersion().substring(1).toDouble() > 1.0
2020
}
2121

2222
fun isDeprecatedVersionKey (): Boolean {

0 commit comments

Comments
 (0)