Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Scala-Akka] Generate default values for optional model fields #1119

Conversation

antbell
Copy link
Contributor

@antbell antbell commented Sep 26, 2018

Fix #1118

CC @clasnake @jimschubert @shijinkui @ramzimaalej

Description of the PR

Add default value None to optional fields in scala-akka model classes.
Regenerate scala-akka pet-store

@wing328
Copy link
Member

wing328 commented Sep 29, 2018

@antbell FYI. I've updated Scala samples using scalafmt to format the code (7379f64)

@wing328 wing328 merged commit 8b47984 into OpenAPITools:master Sep 29, 2018
@wing328
Copy link
Member

wing328 commented Sep 29, 2018

@antbell thanks for the PR, which has been merged into master.

@wing328 wing328 added this to the 3.3.0 milestone Sep 29, 2018
@wing328
Copy link
Member

wing328 commented Oct 2, 2018

@antbell thanks again for the PR, which is included in the v3.3.0 minor release: https://twitter.com/oas_generator/status/1046941449609068544

A-Joshi pushed a commit to ihsmarkitoss/openapi-generator that referenced this pull request Feb 27, 2019
…PITools#1119)

* Generate default values for optional model fields in scala-akka

Fix OpenAPITools#1118

* Updated akka-client petstore with defaults for optional model fields

* update petstore sample with scalafmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants