Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Hartmann committed Dec 19, 2024
1 parent 839bbae commit 89f6063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/kotlin/org/cip4/xjdf/json/openapi/SchemaSingleton.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ object SchemaSingleton {
return factory.getSchema(schema, config)
}

fun getSchemaForSignal(path: Path, code: Int = 200): JsonSchema {
fun getSchemaForSignal(path: Path): JsonSchema {
val schema =
getSchemaForPath(path)["post"]["callbacks"]["signal"].first()["post"]["requestBody"]["content"].first()["schema"]
try {
return factory.getSchema(schema, config)
} catch (e: ClassCastException) {
throw e;
throw e
}
}

Expand Down

0 comments on commit 89f6063

Please sign in to comment.