Open alsonlu opened 4 months ago
Can anyone help here? Thanks!
Im having the same issue. The example
section is compleity missing from the generated Spring controller.
Looks like this PR solves our problem: https://github.com/OpenAPITools/openapi-generator/pull/17613
Description
I want to show a
description
andexample
of fields of typeobject
but the generated code leaves theexample
fieldnull
and thedescription
field as an empty string (""
). The preview of my openapi schema file shows those fields.openapi-generator version
I'm using 7.2.0. I'm not sure if it's a regression but I did test with 6.6.0 as well and didn't see those fields populated
OpenAPI declaration file content or url
Command line used for generation
java -jar openapi-generator-cli.jar generate -i <PATH TO ABOVE FILE> -g kotlin-spring -o ~/temp/test2
Steps to reproduce
Using this command
java -jar openapi-generator-cli.jar generate -i <PATH TO ABOVE FILE> -g kotlin-spring -o ~/temp/test2
and then looking at thesrc/main/kotlin/org/openapitools/model/CaptureCommand.kt
thefinancingInfo
hasexample
asnull
anddescription
as""
Related issues/PRs
Suggest a fix/enhancement