Skip to content

Commit 8d0f750

Browse files
committed
Add django-pydantic-field and drf-pydantic to third-party packages documentation
1 parent 9734f77 commit 8d0f750

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/api-guide/serializers.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,10 @@ The [drf-encrypt-content][drf-encrypt-content] package helps you encrypt your da
11801180

11811181
The [drf-shapeless-serializers][drf-shapeless-serializers] package provides dynamic serializer configuration capabilities, allowing runtime field selection, renaming, attribute modification, and nested relationship configuration without creating multiple serializer classes. It helps eliminate serializer boilerplate while providing flexible API responses.
11821182

1183+
### DRF Pydantic
1184+
1185+
The [drf-pydantic][drf-pydantic] package allows you to use Pydantic with Django REST framework for data validation and (de)serialization. If you develop DRF APIs and rely on Pydantic for data validation, this package provides seamless integration between both libraries.
1186+
11831187

11841188
[cite]: https://groups.google.com/d/topic/django-users/sVFaOfQi4wY/discussion
11851189
[relations]: relations.md
@@ -1204,3 +1208,4 @@ The [drf-shapeless-serializers][drf-shapeless-serializers] package provides dyna
12041208
[drf-writable-nested]: https://github.com/beda-software/drf-writable-nested
12051209
[drf-encrypt-content]: https://github.com/oguzhancelikarslan/drf-encrypt-content
12061210
[drf-shapeless-serializers]: https://github.com/khaledsukkar2/drf-shapeless-serializers
1211+
[drf-pydantic]: https://github.com/georgebv/drf-pydantic

docs/community/third-party-packages.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ To submit new content, [create a pull request][drf-create-pr].
7979

8080
* [django-rest-framework-mongoengine][django-rest-framework-mongoengine] - Serializer class that supports using MongoDB as the storage layer for Django REST framework.
8181
* [djangorestframework-gis][djangorestframework-gis] - Geographic add-ons
82+
* [django-pydantic-field][django-pydantic-field] - Provides a way to use Pydantic models as schemas for Django's JSONField with full support for Pydantic v1 and v2, type safety and integration with Django REST Framework.
83+
* [drf-pydantic][drf-pydantic] - Use Pydantic with Django REST framework for data validation and (de)serialization.
8284
* [djangorestframework-hstore][djangorestframework-hstore] - Serializer class to support django-hstore DictionaryField model field and its schema-mode feature.
8385
* [djangorestframework-jsonapi][djangorestframework-jsonapi] - Provides a parser, renderer, serializers, and other tools to help build an API that is compliant with the jsonapi.org spec.
8486
* [html-json-forms][html-json-forms] - Provides an algorithm and serializer to process HTML JSON Form submissions per the (inactive) spec.
@@ -272,3 +274,5 @@ To submit new content, [create a pull request][drf-create-pr].
272274
[drf-shapeless-serializers]: https://github.com/khaledsukkar2/drf-shapeless-serializers
273275
[django-lisan]: https://github.com/Nabute/django-lisan
274276
[axioms-drf-py]: https://github.com/abhishektiwari/axioms-drf-py
277+
[django-pydantic-field]: https://github.com/surenkov/django-pydantic-field
278+
[drf-pydantic]: https://github.com/georgebv/drf-pydantic

0 commit comments

Comments
 (0)