Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

chore(deps): bump djangorestframework-jsonapi from 6.0.0 to 6.1.0 #1018

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 12, 2024

Bumps djangorestframework-jsonapi from 6.0.0 to 6.1.0.

Release notes

Sourced from djangorestframework-jsonapi's releases.

v6.1.0

See changelog for details.

Changelog

Sourced from djangorestframework-jsonapi's changelog.

[6.1.0] - 2023-08-25

This is the last release supporting Python 3.7, Django 4.0, Django 4.1 and Django REST framework 3.13.

Added

  • Added support for Python 3.11.
  • Added support for Django 4.2.
  • Added 400 Bad Request as a possible error response in the OpenAPI schema.

Changed

  • Added support to overwrite serializer methods in customized schema class

  • Adjusted some still old formatted strings to f-strings.

  • Replaced OrderedDict with dict which is also ordered since Python 3.7.

  • Compound document "include" parameter is only included in the OpenAPI schema if serializer implements included_serializers.

  • Allowed overwriting of resource id by defining an id field on the serializer.

    Example:

    class CustomIdSerializer(serializers.Serializer):
        id = serializers.CharField(source='name')
        body = serializers.CharField()
  • Allowed overwriting resource id on resource related fields by creating custom ResourceRelatedField.

    Example:

    class CustomResourceRelatedField(relations.ResourceRelatedField):
        def get_resource_id(self, value):
            return value.name
  • SerializerMethodResourceRelatedField(many=True) relationship data now includes a meta section.

  • Required relationship fields are now marked as required in the OpenAPI schema.

  • Objects in the included array are documented in the OpenAPI schema to possibly have additional properties in their "attributes" and "relationships" objects.

Fixed

  • Refactored handling of the sort query parameter to fix duplicate declaration in the generated OpenAPI schema definition
  • Non-field serializer errors are given a source.pointer value of "/data".
  • Fixed "id" field being added to /data/attributes in the OpenAPI schema when it is not rendered there.
  • Fixed SerializerMethodResourceRelatedField(many=True) fields being given a "reltoone" schema reference instead of "reltomany".
  • Callable field default values are excluded from the OpenAPI schema, as they don't resolve to YAML data types.
Commits
  • cd5f179 Release 6.1.0 (#1173)
  • b7dd585 Exclude callable field defaults from the OpenAPI schema (#1167)
  • 126cd9f Add additionalProperties to includes' attributes and relationships (#1164)
  • 39a9c92 Add HTTP 400 Bad Request as a possible generic error response (#1165)
  • 590dbb4 Specify required relationship fields in OpenAPI schema (#1163)
  • 311385e Include meta section for SerializerMethodResourceRelatedField(many=True) (#1162)
  • 71508ef Fix many serializer method fields having the incorrect relation schema (#1161)
  • 57df2f1 Added missing group type to custom query parameter regex (#1158)
  • 80eea77 Allowed to overwrite resource id in serializer (#1127)
  • 66d2de4 Omit id field from OpenAPI schema attributes (#1156)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team as a code owner April 12, 2024 13:16
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Apr 12, 2024
@c0rydoras c0rydoras enabled auto-merge (rebase) April 12, 2024 13:57
@dependabot dependabot bot force-pushed the dependabot/pip/djangorestframework-jsonapi-6.1.0 branch 15 times, most recently from 5f2de37 to 55e5f21 Compare April 12, 2024 15:47
@c0rydoras
Copy link
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/pip/djangorestframework-jsonapi-6.1.0 branch 7 times, most recently from 7835999 to 1d35449 Compare April 15, 2024 09:30
Bumps [djangorestframework-jsonapi](https://github.com/django-json-api/django-rest-framework-json-api) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/django-json-api/django-rest-framework-json-api/releases)
- [Changelog](https://github.com/django-json-api/django-rest-framework-json-api/blob/main/CHANGELOG.md)
- [Commits](django-json-api/django-rest-framework-json-api@v6.0.0...v6.1.0)

---
updated-dependencies:
- dependency-name: djangorestframework-jsonapi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/djangorestframework-jsonapi-6.1.0 branch from 1d35449 to 3301c0c Compare April 15, 2024 14:09
@c0rydoras c0rydoras merged commit 5f37341 into master Apr 15, 2024
3 checks passed
@c0rydoras c0rydoras deleted the dependabot/pip/djangorestframework-jsonapi-6.1.0 branch April 15, 2024 14:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant