We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There doesn't seem to be any way to represent dictionaries with a known value type. For example, this:
class ExampleSerializer(serializers.Serializer): dictionary = serializers.DictField(child=serializers.IntegerField())
produces this:
Example: type: object properties: dictionary: type: object additionalProperties: {}
It would be nice if it would instead produce this:
Example: type: object properties: dictionary: type: object additionalProperties: type: integer
The text was updated successfully, but these errors were encountered:
good catch! i think this should be an easy addition for the basic cases
Sorry, something went wrong.
support for DictField child type (#142) and models.JSONField (Django>…
0dbd9d1
…=3.1)
@zach-waggoner that should do the trick. can you confirm and close the issue? thx
Works great! Thanks.
No branches or pull requests
There doesn't seem to be any way to represent dictionaries with a known value type. For example, this:
produces this:
It would be nice if it would instead produce this:
The text was updated successfully, but these errors were encountered: