-
Notifications
You must be signed in to change notification settings - Fork 40
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
Feature: Add other schemas to @resonds #123
Feature: Add other schemas to @resonds #123
Conversation
Two bugs noticed (may not be real bugs). When no body is present (i.e. `request.get_json()` returns `None`) the schema is presented `None` to load from, whereas an empty JSON body could better be interpreted as `{}`. For a body schema with no required fields this leads to better behavior. Error aggregation doesn't seem to have been working correctly, as `error.data['errors']` never existed, and comment "If any parsing produced an error, combine them and reraise" hints this was the intended behavior.
Exclude lines used specifically for marshmallow compatibility
# Conflicts: # dev-requirements.txt
Now works with Flask 2.2 Weukzeug 2.2 flask-restx 1.0.1
werkzeug 3.x requires python 3.8+
separated tests into logical grouping consolidated imorts
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #123 +/- ##
==========================================
- Coverage 98.35% 97.03% -1.32%
==========================================
Files 7 9 +2
Lines 1154 1416 +262
==========================================
+ Hits 1135 1374 +239
- Misses 19 42 +23 ☔ View full report in Codecov by Sentry. |
Looks great, thanks for contributing! |
Available in latest version https://pypi.org/project/flask-accepts/#history |
@apryor6 Thanks for this and updating pypi Could you also bump the Cheers |
This PR addresses several points in #17
It adds the following
Cleaned up the tests and separated them into logical groups
updated the documenation for this new feature
updated werkzeug dependency based on python version