Skip to content

Commit 9d2d506

Browse files
committed
Suppress detekt warning
1 parent 59f783c commit 9d2d506

File tree

1 file changed

+2
-0
lines changed
  • json-schema-validator-objects/src/commonMain/kotlin/io/github/optimumcode/json/schema/objects/wrapper

1 file changed

+2
-0
lines changed

json-schema-validator-objects/src/commonMain/kotlin/io/github/optimumcode/json/schema/objects/wrapper/Wrappers.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@file:JvmName("ObjectWrappers")
2+
@file:Suppress("detekt:MatchingDeclarationName")
23

34
package io.github.optimumcode.json.schema.objects.wrapper
45

@@ -60,6 +61,7 @@ public fun wrapAsElement(
6061
obj is Array<*> -> ListWrapper(obj.map { wrapAsElement(it, configuration) })
6162
obj is Set<*> && configuration.allowSets ->
6263
ListWrapper(obj.map { wrapAsElement(it, configuration) })
64+
6365
obj is String || obj is Number || obj is Boolean -> PrimitiveWrapper(numberToSupportedTypeOrOriginal(obj))
6466
else -> error("unsupported type to wrap: ${obj::class}")
6567
}

0 commit comments

Comments
 (0)