Fix parameters schema validation

This commit is contained in:
2021-04-02 22:41:04 +02:00
parent c81b63aef2
commit dd4c2dadab
2 changed files with 16 additions and 3 deletions

View 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"