Flask-resty

Latest version: v5.0.0

Safety actively analyzes 688931 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 14

0.15.1

- **Chore:** Fix package long description (172)

0.15.0

- **Breaking:** Move the valid fields check in `Sorting` from `get_column` to `get_request_field_orderings` (170)
- **Breaking:** Automatically sort by ID fields in `RelayCursorPagination` (171)
- **Breaking:** Add `view` as an argument to `get_request_field_orderings` in `FieldSortingBase` (171)

0.14.0

- **Breaking:** Do not add item in `get_item` with `create_missing` if not using `will_update_item` (163)
- This bypasses running the authorization checks for saving an item to the database, as there's generally no reason to save the created missing item unless it needs to be updated
- **Bugfix:** Handle uncaught application errors (168)

0.13.0

- **Breaking:** Format all HTTP errors as JSON when Flask-RESTy is installed (149)
- **Breaking:** Change back to "parameter" instead of "query" in "source" for errors from bad query strings (151)
- **Breaking:** Add `authorize_create_item` for explicitly authorizing creates (153, 160)
- To recover the old behavior, just do nothing in this hook.
- **Breaking:** Make `SortingBase` just the sorting contract and change the previous `SortingBase` to `FieldSortingBase` (155)
- **Breaking:** Revamp filtering API (156)
- Rename `FilterFieldBase` to `FieldFilterBase`, `ColumnFilterField` to `ColumnFilter`, `ModelFilterField` to `ModelFilter`, and `filter_function` to `model_filter`
- Replace `empty` parameter on argument filters with `allow_empty` and change the default behavior
- `allow_empty=False`, the default, has the same behavior as `empty=sql.false()` previously
- `allow_empty=True` has the same behavior as the previous default of `empty=''`
- Respect `required` and `missing` on the Marshmallow field in `ModelFilter`
- Replace shorthand tuple syntax in `Filtering` with explicit use of `ColumnFilter`
- Support creating `ColumnFilter` instances without an explicit column name
- Add `required` parameter to `ColumnFilter`, that allows marking a filter argument as required
- Add `validate` parameter to `ColumnFilter` that disables field validation when set to `False`
- Add `ArgFilterBase` base class for individual argument filters with just the contract, with `filter_query` that transforms a query, instead of `get_filter` that returns a filter
- **Breaking:** Rename `for_update` on `get_item` and related methods to `will_update_item` (157)
- **Feature:** Make response status code on `add_ping` configurable (146)
- **Feature:** Support args schemas for query strings (152)
- Consistent with the behavior of `request.args`, scalar fields in args schemas only consider the first value for each key in the query
- List fields in args schemas will handle all values for a given query key as a list
- **Feature:** Add `with_for_update` to `get_item` and related methods to add a `FOR UPDATE` clause when selecting the item (157, 158)
- **Feature:** Add `AuthorizeModifyMixin` to delegate all modification authorization checks to a `authorize_modify_item` method (160)

0.12.2

- **Feature:** Add `JwkSetAuthentication` (143)

0.12.1

- **Bugfix:** Apply filtering before sorting for list queries (140)

Page 8 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.