Closed mohanapriya2308 closed 11 months ago
Patch coverage: 100.00
% and no project coverage change.
Comparison is base (
5dbb4df
) 90.08% compared to head (7d04f4f
) 90.08%.:exclamation: Current head 7d04f4f differs from pull request most recent head c9baeef. Consider uploading reports for the commit c9baeef to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@mohanapriya2308 thanks for the fix!
Fix for #475
parse_data
parses integer string also to integers. This breaks when integer string is expected to be string. To fix this, introduced new paramparse_integer
when set to false, integers are not parsed.Before JSON::Validator.fully_validate({type: "string"}, "123") => ["The property '#/' of type integer did not match the following type: string in schema"]
After JSON::Validator.fully_validate({type: "string"}, "123", {"parse_integer" => false) => []