Closed Poolmann closed 1 month ago
I would expect properties with a default to be initialized as well (with the DEFAULT).
thanks for reporting the issue.
May I know if you've time to contribute a PR to add the default value support in the JS client? We can work with you on that.
May I know if you've time to contribute a PR to add the default value support in the JS client?
Not right now, but I will probably have to look into the issue in the near future.
I actually got sooner to it than I thought. It would be nice if someone looked into it. The changes are minimal.
Bug Report Checklist
Description
openapi-generator version
7.8.0
OpenAPI declaration file content or url
Generation Details
java -jar openapi-generator-cli.jar generate -i required.yaml -g javascript -o req_test
Steps to reproduce
Generate client, run:
Output:
I would expect properties with a default to be initialized as well (with the DEFAULT). Especially since this is the case with all the other generators that I'm using (Java, Python, C#, PHP).