-
Notifications
You must be signed in to change notification settings - Fork 240
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
[BUG] Nested document validation is broken #107
Comments
hm, this doesn't fail. what's actually the output of your code above? |
The _errors include the following,
This seems to got introduced with f66d8bd. This commit is not in your fork though and i guess that's why you don't get an error. |
I'm seeing the same problem. I think the problem is in the __validate_required_fields function. There are two lines that get the set of missing fields.
|
If I revert |
well, i was the one that authored the commit in question. so, yes i'm actually using this code. can you please cherry-pick this commit and run the tests? it should fail. if not, please investigate. i'm, too tired to hack around now. here's my git log for comparison:
|
do you know why you made this change? the commit log doesn't say. |
yes, because with the introduction of coercion but as long as i can't reproduce a fail, i won't investigate further. has anyone tried the test i added, and how does it behave? |
Now it does fail.
Using self.assertSuccess works, creating a validator and giving a |
thanks, i will look into it. have you already figured out the reason why |
no, I have not been able to look it yet. it creates and used the validator differently,
as opposed to just
which fails. There must be some difference in the setup between these two cases. |
I too am affected by this issue.
as my schema and I get a similar error as the poster above. |
that's a nasty one, see #111 for some progress. |
- also adds a test for pyeve#107
- also adds a test for pyeve#107
- also adds a test for pyeve#107
Nested document validation seems to be broken in master branch. After a bit of debugging it seems that this is due to the fact that self.document attribute of subdocument validators gets assigned with a copy of the contents of the parent document (
context
) causing further validation steps to fail.To reproduce
The text was updated successfully, but these errors were encountered: