Skip to content

Commit

Permalink
Merge pull request #1487 from znsio/update-oas-parser
Browse files Browse the repository at this point in the history
Updated v3-swagger-parser library to version 2.1.24
  • Loading branch information
joelrosario authored Dec 18, 2024
2 parents a5d9442 + 0f99ea0 commit e2ccf88
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ dependencies {
implementation(project(':junit5-support'))

implementation "io.ktor:ktor-client-cio:$ktor_version"
implementation 'io.swagger.parser.v3:swagger-parser:2.1.22'
implementation 'io.swagger.parser.v3:swagger-parser:2.1.24'

implementation "org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.6.3"

Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {

implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.0'

implementation 'io.swagger.parser.v3:swagger-parser:2.1.22'
implementation 'io.swagger.parser.v3:swagger-parser:2.1.24'

testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
implementation 'com.github.mifmif:generex:1.0.2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,13 @@ class OpenApiSpecification(
}
}

private fun resolveExternalReferences(): ParseOptions = ParseOptions().also { it.isResolve = true }
private fun resolveExternalReferences(): ParseOptions {
return ParseOptions().also {
it.isResolve = true
it.isResolveRequestBody = true
it.isResolveResponses = true
}
}

fun String.applyOverlay(overlayContent: String): String {
if(overlayContent.isBlank())
Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=2.0.47
version=2.0.48

0 comments on commit e2ccf88

Please sign in to comment.