JSONField uses dict schema but can be any json primitive #1095
Labels
bug
Something isn't working
fix confirmation pending
issue has been fixed and confirmation from issue reporter is pending
Describe the bug
When using a
JSONField
in the serializer, the generated schema is for an object. However, DRF describes it as being any json primitive: strings, numbers, booleans, etc. The current implementation seems more appropriate for DictField, not JSONFieldTo Reproduce
Expected behavior
The generated type should be
OpenApiTypes.ANY
.The text was updated successfully, but these errors were encountered: