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

[dependencies] Fix, support marshmallow 3 #1334

Merged
merged 17 commits into from
Jun 1, 2020
Merged

[dependencies] Fix, support marshmallow 3 #1334

merged 17 commits into from
Jun 1, 2020

Conversation

dpgaspar
Copy link
Owner

@dpgaspar dpgaspar commented Mar 27, 2020

Support marshmallow 3

This is a breaking change!

  • API is strict by default, so POST, PUT with undeclared fields will HTTP 422
  • New support for functions/methods (callables) has model properties

setup.py Outdated Show resolved Hide resolved
@@ -2011,14 +2011,23 @@ def test_update_item_excluded_cols(self):
.one_or_none()
)
pk = model1.id
item = dict(field_string="test_Put", field_integer=1000)
item = dict(field_string="test_Put")
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking change, we are strict now, unknown columns will get {"message": {"field_integer": ["Unknown field."]}}

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

Successfully merging this pull request may close these issues.

1 participant