File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/main/kotlin/org/jetbrains/kotlinx/dataframe/io Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ repositories {
2020dependencies {
2121 api(project(" :core" ))
2222
23+ implementation(libs.kotlinLogging)
2324 implementation(libs.kotlin.reflect)
2425 implementation(libs.kotlinpoet)
2526 api(libs.swagger) {
Original file line number Diff line number Diff line change 11package org.jetbrains.kotlinx.dataframe.io
22
3+ import io.github.oshai.kotlinlogging.KotlinLogging
34import io.swagger.parser.OpenAPIParser
45import java.io.File
56import java.net.URL
67
8+ private val logger = KotlinLogging .logger {}
9+
710/* * Needs to have any type schemas to convert. */
811public fun isOpenApiStr (text : String ): Boolean = try {
912 val parsed = OpenAPIParser ().readContents(text, null , null )
1013 parsed.openAPI?.components?.schemas != null
11- } catch (_: Throwable ) {
14+ } catch (e: Throwable ) {
15+ logger.debug(e) { " Attempt to read input as YAML/JSON OpenAPI specification failed." }
1216 false
1317}
1418
You can’t perform that action at this time.
0 commit comments