-
-
Notifications
You must be signed in to change notification settings - Fork 620
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
Nesting field should validate nested schema instance #406
Comments
I think validating |
According to the docs, this is (now) a known limitation:
Is this a satisfactory state of affairs? It seems to me the following behaviors would be preferable, in descending order of preference:
As soon as I have some guidance on what should happen, I'm happy to work on this. |
I believe this was resolved. I cracked open The code is maybe a little hard to understand, but the tests cover simple cases and are pretty clear. Should I put in a PR with a doc update, or should this just be closed? |
Consider the following test cases:
The only difference is
Inner()
vsInner
. The first test case fails asbar
field will be included even though it is passed to the exclusion list of the nesting field.Thus, when
SchemaABC
instance is passed we should validatemany
,only
,exclude
settings and raise an error if something is conflicting.P.S. The second test case is taken from marshmallow/tests/test_schema.py.
The text was updated successfully, but these errors were encountered: