-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
Remove ordered class Meta option #2704
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup!
Should we add a test where OrderedDict
is used as dict_class
?
We may want to rename schema classes in test_options as they don't make much sense when everything schema is ordered. This is something I should have done in #1896 but I lazily postponed. It can wait a little more...
CHANGELOG.rst
Outdated
@@ -35,6 +35,9 @@ As a consequence of this change: | |||
|
|||
Thanks :user:`ddelange` for the PR. | |||
|
|||
- The `ordered` class Meta option is removed. Set `Schema.dict_class` to `OrderedDict` to maintain the previous behavior. | |||
Note that field order already preserved by default (:issue:`2146`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/field order already preserved/field order is already preserved
looks like we already have one here marshmallow/tests/test_schema.py Lines 2663 to 2664 in 747c198
good idea. done |
close #2146