-
Notifications
You must be signed in to change notification settings - Fork 145
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
add drop
support to Sequence
#225
Conversation
Okay, tests in place. |
I'm thinking this functionality should be moved to |
null
and drop
support to Sequence
null
and drop
support to Sequence
I guess handling I'm leaning towards just implementing this in Sequence and Tuple and then modifying the documentation to indicate that the handling of What do other people think about this? |
Looking at this some more... |
But should a tuple having |
@pallix - can you elaborate? I don't understand. My point is as follows: Let's say you have a TupleSchema like this:
The result of serialization should always be a 3-element tuple in this case. It doesn't make sense to drop an element as you would with a dict or list because there's no way to figure out which element was the one dropped. For example, if the serialized value was |
Ok I see your point ; I'm relatively new using this library so I will trust your competence. |
@pallix - new... old... if you see something wrong with my logic, let me know. :) |
I know right now there's no "validation" on missing values, but I'm wondering if an exception should be thrown when you try to using |
It's always nice to have as much validation as possible as earlier as possible. |
null
and drop
support to Sequence
drop
support to Sequence
Okay, I think this is good to be merged now. |
To deal with #224. Sequence/SequenceSchema now supports
null
anddrop
in the same way Mapping does.