Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve schema generation for DictField and HStoreField #9625

Closed
wants to merge 3 commits into from

Conversation

beruic
Copy link
Contributor

@beruic beruic commented Jan 16, 2025

Description

In rest_framework.schemas.openapi.AutoSchema, make serializers.DictField and serializers.HStoreField generate objects with additionalProperties defined by their .child.

Make `serializers.DictField` and `serializers.HStoreField` generate objects with `additionalProperties` defined by their `.child`.
Copy link
Member

@browniebroke browniebroke left a comment

Choose a reason for hiding this comment

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

This module is deprecated, please move to a supported version like https://github.com/tfranzel/drf-spectacular/

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.

2 participants