-
-
Notifications
You must be signed in to change notification settings - Fork 135
Raw value type strict validation #123
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
11510f0
to
bf330ee
Compare
Codecov Report
@@ Coverage Diff @@
## master #123 +/- ##
=========================================
+ Coverage 96.19% 96.2% +0.01%
=========================================
Files 54 54
Lines 1444 1450 +6
=========================================
+ Hits 1389 1395 +6
Misses 55 55
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #123 +/- ##
=========================================
+ Coverage 96.19% 96.3% +0.11%
=========================================
Files 54 54
Lines 1444 1460 +16
=========================================
+ Hits 1389 1406 +17
+ Misses 55 54 -1
Continue to review full report at Codecov.
|
bf330ee
to
9d1de1d
Compare
9d1de1d
to
cd0ca5d
Compare
return int(value) | ||
|
||
def _unmarshal_number(self, value, custom_formatters=None, strict=True): | ||
if strict and not isinstance(value, (float, )): |
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.
I have a case where I return a number with a value of 3
3 contrary to 3.0 is not recognized as a float.
…trict-validation Raw value type strict validation
Strict validation of raw value type.
Enabled for media type only. Parameters are disabled for now (backward compatibility). Parameters type strict validation should be enabled by default in version 1.0.
Fixes #105