Skip to content
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

Format in validation length will cause error #33

Closed
marcinma opened this issue May 6, 2015 · 2 comments
Closed

Format in validation length will cause error #33

marcinma opened this issue May 6, 2015 · 2 comments

Comments

@marcinma
Copy link

marcinma commented May 6, 2015

In primitives lines 116 - 119

if obj.minItems and len(self) < obj.minItems:
            raise errs.ValidationError('Array should be more than {0}, not {1}'.format(o.minItems, len(self)))
if obj.maxItems and len(self) > obj.maxItems:
            raise errs.ValidationError('Array should be less than {0}, not {1}'.format(o.maxItems, len(self)))

o is not defined and should be replaced to obj

@mission-liao
Copy link
Member

thanks for pointing out, there must be some test case missed.

mission-liao added a commit that referenced this issue May 7, 2015
@mission-liao
Copy link
Member

thx for reporting issues, this issue is fixed in v0.8.9.

mission-liao added a commit to pyopenapi/pyopenapi that referenced this issue Aug 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants