Skip to content

Conversation

@fehguy
Copy link
Contributor

@fehguy fehguy commented Mar 10, 2017

A small change but makes a lot of generated code changes.

Fixes #5016

@fehguy fehguy added this to the v2.2.3 milestone Mar 10, 2017
property.getter = "get" + getterAndSetterCapitalize(name);
property.setter = "set" + getterAndSetterCapitalize(name);
property.example = toExampleValue(p);
String example = toExampleValue(p);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of change the logic in this function (which may affect things elsewhere) just don't set a property value if the example is the string null.

@fehguy fehguy merged commit 429c211 into master Mar 10, 2017
@fehguy fehguy deleted the issue-5016 branch March 10, 2017 21:06
@wing328 wing328 changed the title null out the string null in examples. Rebuilt java clients Null out the string null in examples. Rebuilt java clients Mar 12, 2017
spr3nk3ls pushed a commit to spr3nk3ls/swagger-codegen that referenced this pull request Mar 28, 2017
null out the string `null` in examples.  Rebuilt java clients
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.

3 participants