Starlette-jsonapi

Latest version: v2.2.1

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

Scan your dependencies

Page 1 of 2

3.10

2.2.1

2.1.0

Added experimental support for generating OpenAPI 3.x specifications

2.0.0

- BaseResource.get_all renamed to BaseResource.get_many
- Require starlette >= 0.14.2 to install, for the functools.partial support
- Remove handle_{get, patch, delete, get_many, post} in favor of partials
- Marked id argument of get, patch, delete as required, because the framework already expects and passes it.
- Catch and handle errors from before_request and after_request hooks
- Added request_context to BaseResource.handle_error and BaseRelationshipResource.handle_error
- Added _BaseResourceHandler and moved / refactored common logic
- Made JSONAPIException serialize its detail even if a list of errors is given
- Relationships will serialize by default, removing the need to specify include_resource_linkage=True when creating a JSONAPIRelationship
- Sparse Fields handling has been fixed, refactored (no longer async) and should now be easier to override in subclasses
- BaseResource.register_routes now optionally accepts base_path
- BaseResource.prepare_relations renamed to BaseResource.include_relations

1.2.0

- absolute links, via `app.url_prefix`
- top level `meta` objects
- documented client generated IDs support

1.1.0

* added support for Related Resources through handler `get_related` and serialization method `serialize_related`
* added `request_context` to `BaseResource`
* require that `related_resource` is specified in order to display related links, when configuring a `JSONAPIRelationship`

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.