Skip to content

Commit

Permalink
Add required description for response (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilmveel authored Nov 24, 2023
1 parent 35c3f32 commit bebd493
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class OpenApiV2Emitter(override val logger: Logger = noLogger, override val spli
responses = responses
.associate {
StatusCode(it.status) to ResponseObject(
description = "${this.name} ${it.status} response",
schema = it.content?.reference?.let { reference ->
when (reference.isIterable) {
false -> reference.emit()
Expand Down

0 comments on commit bebd493

Please sign in to comment.