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

Update scala's model.mustache to set a default value of None for optional fields (as in 2.4) #268

Closed
wants to merge 1 commit into from

Conversation

Enrico2
Copy link

@Enrico2 Enrico2 commented Dec 28, 2018

The missing default value of None for optional fields is critical for significantly less boilerplate code, and backwards compatibility with anyone using the previous version of swagger-codegen.
The line was copied from https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/resources/scala/model.mustache

The missing default value of None for optional fields is critical for significantly less boilerplate code, and backwards compatibility with anyone using the previous version of swagger-codegen
@Enrico2
Copy link
Author

Enrico2 commented Mar 11, 2019

What's the process to get this merged? Thanks.

@HugoMario
Copy link
Contributor

hey @Enrico2 , sorry for this long reply. I'll help with your PR

@HugoMario HugoMario self-assigned this Aug 14, 2020
@Enrico2
Copy link
Author

Enrico2 commented Aug 14, 2020

Hey @HugoMario , thanks but given that it's been almost 2 years, as you might imagine this has become stale for me. I'm no longer working for the company that used this library, however, just looked at the current model.mustache file (in its new location) and it's still missing the default value. I'm not motivated to do anything about that anymore, but if you are maintaining this repository, I think it's a worthwhile change.

HugoMario added a commit that referenced this pull request Aug 14, 2020
HugoMario added a commit that referenced this pull request Aug 14, 2020
@HugoMario
Copy link
Contributor

fixed conflicts on #742, thanks @Enrico2 for PR and sorry again for this so long delay :/

@HugoMario HugoMario closed this Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants