Created by: pilzm
Looks like the change in #8577 fixed default values for Java generators, but caused kotlin-spring to break with #9904. The kotlin generators handle default values in their own way in org.openapitools.codegen.languages.AbstractKotlinCodegen#toDefaultValue
, so string values end up quoted twice (e.g. defaultValue = ""id""
).
For this fix, I just reverted the relevant change to kotlin-spring in #8577. I assume this is a non-breaking change - non-string values should still be quoted like before.
To test this fix: I verified this fix with the reproducer provided in #9904, and the resulting diff is empty -> original behavior restored.
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvnw clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
File the PR against the correct branch: master
,5.3.x
,6.0.x
-
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.