Fix parameters schema validation
This commit is contained in:
4
src/main/kotlin/fr/dcproject/common/utils/Numeric.kt
Normal file
4
src/main/kotlin/fr/dcproject/common/utils/Numeric.kt
Normal file
@@ -0,0 +1,4 @@
|
||||
package fr.dcproject.common.utils
|
||||
|
||||
fun String.isInt(): Boolean = this.toIntOrNull() != null
|
||||
fun String.isBool(): Boolean = this == "true" || this == "false"
|
||||
Reference in New Issue
Block a user