Closed Godefroy-Amaury closed 3 months ago
Thanks! Add a test and a CHANGELOG entry, please?
It would be amazing if you could please look at https://github.com/opensearch-project/opensearch-api-specification as well and add tests there for this and other use-cases so we don't lose this functionality as we move towards more of this code being generated.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 70.69%. Comparing base (
ba715b9
) to head (b786504
). Report is 42 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for fixing this!
Description
Allow the use of
50
,"50"
or"50%"
as valid value forqx._min_should_match
/min_should_match
in theBool.__and__
method.Previously, if for any reason the
qx._min_should_match
was a string, a TypeError error was raise by theif len(qx.should) <= min_should_match:
.Still raise a ValueError if the given value is an invalid integer representation.
Issues Resolved
Closes #779
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.