-
Notifications
You must be signed in to change notification settings - Fork 1.5k
@ApiModelProperty example string does not escape char "\" from JSON example #1956
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1956 +/- ##
============================================
- Coverage 95.91% 95.89% -0.03%
Complexity 2647 2647
============================================
Files 311 311
Lines 5826 5840 +14
Branches 475 479 +4
============================================
+ Hits 5588 5600 +12
- Misses 138 139 +1
- Partials 100 101 +1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@heapifyman This is awesome. Could you perhaps add a few tests that test the serialization?
|| value.startsWith("[") // array | ||
|| "true".equals(value) // true | ||
|| "false".equals(value) // false | ||
|| JSON_NUMBER_PATTERN.matcher(value).matches(); // number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a serialization json test that covers these criteria?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, sure. But I'm going to need a little help with that.
I am not that familiar with groovy and the spock framework.
Also, where to put the tests? Can I extend some existing test class or create a new one?
Would be great if you could give me some starting point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you find it easier, the standard junit tests work just as well.
fixes #1941