Set the proper JSON schema type for HStoreFields in OpenAPI schemas by Lucidiot · Pull Request #6914 · encode/django-rest-framework (original) (raw)
Note: Before submitting this pull request, please review our contributing guidelines.
Description
HStoreFields were described as {"type": "string"}
inside OpenAPI schemas, while they should actually be {"type": "object"}
, because the generator did not recognize them. This PR fixes this issue and adds a test case for this particular field.
Fixes #6913