We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 418ba02 commit 9c8a843Copy full SHA for 9c8a843
src/main/kotlin/com/papsign/ktor/openapigen/parameters/parsers/converters/primitive/PrimitiveConverter.kt
@@ -20,9 +20,11 @@ object PrimitiveConverter : ConverterSelector {
20
private val dateFormat = SimpleDateFormat()
21
22
private val primitiveParsers = mapOf(
23
- primitive {
24
- it.toIntOrNull() ?: 0
25
- },
+ primitive { it.toByteOrNull() ?: 0 },
+ primitive { it.toByteOrNull() },
+ primitive { it.toShortOrNull() ?: 0 },
26
+ primitive { it.toShortOrNull() },
27
+ primitive { it.toIntOrNull() ?: 0 },
28
primitive { it.toIntOrNull() },
29
primitive {
30
it.toLongOrNull() ?: 0
0 commit comments