Skip to content

Commit fa676b9

Browse files
committed
Add schema to path parameter for openapi3
1 parent 39f6b86 commit fa676b9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

restdocs-api-spec-openapi3-generator/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies {
1919
compile(project(":restdocs-api-spec-model"))
2020
compile(project(":restdocs-api-spec-jsonschema"))
2121

22-
compile("io.swagger.core.v3:swagger-core:2.0.5")
22+
compile("io.swagger.core.v3:swagger-core:2.0.6")
2323
compile("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion")
2424
compile("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
2525

restdocs-api-spec-openapi3-generator/src/main/kotlin/com/epages/restdocs/apispec/openapi3/OpenApi3Generator.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,15 @@ object OpenApi3Generator {
365365
return PathParameter().apply {
366366
name = parameterDescriptor.name
367367
description = parameterDescriptor.description
368+
schema = StringSchema()
368369
}
369370
}
370371

371372
private fun parameterName2PathParameter(parameterName: String): PathParameter {
372373
return PathParameter().apply {
373374
name = parameterName
374375
description = ""
376+
schema = StringSchema()
375377
}
376378
}
377379

0 commit comments

Comments
 (0)