Skip to content

Add django-pydantic-field and drf-pydantic to third-party packages do…#9913

Merged
auvipy merged 1 commit intoencode:mainfrom
Natgho:9873-discussion
Mar 4, 2026
Merged

Add django-pydantic-field and drf-pydantic to third-party packages do…#9913
auvipy merged 1 commit intoencode:mainfrom
Natgho:9873-discussion

Conversation

@Natgho
Copy link
Contributor

@Natgho Natgho commented Mar 4, 2026

docs: add Pydantic integration packages to serializers documentation

  • Add django-pydantic-field for Django JSONField Pydantic support
  • Add drf-pydantic for DRF Pydantic integration

#9873

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds two Pydantic integration packages — django-pydantic-field and drf-pydantic — to the Django REST Framework documentation. Both packages bridge Pydantic with DRF: one for using Pydantic models as schemas for Django's JSONField, and the other for full DRF serializer/validation integration.

Changes:

  • Add django-pydantic-field and drf-pydantic to the Serializers section of third-party-packages.md, with link references.
  • Add a dedicated "DRF Pydantic" section with a description and link reference for drf-pydantic in serializers.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/community/third-party-packages.md Adds bullet entries and link references for both django-pydantic-field and drf-pydantic in the Serializers section.
docs/api-guide/serializers.md Adds a "DRF Pydantic" section entry and link reference for drf-pydantic only.

One issue was identified:

The PR description explicitly calls out both packages for inclusion, and drf-pydantic receives a full section in docs/api-guide/serializers.md. However, django-pydantic-field — whose description even highlights its "integration with Django REST Framework" — is not given a corresponding entry in serializers.md. This is an inconsistency between the PR description intent and the actual changes.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@auvipy auvipy added this to the 3.17 milestone Mar 4, 2026
@auvipy auvipy merged commit dff3c8d into encode:main Mar 4, 2026
11 checks passed
@Natgho Natgho deleted the 9873-discussion branch March 4, 2026 17:20
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.

3 participants