Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.
Issue #5299
closedBindings for pulp \ pulp ansible return python `repr()` for json fields
Description
Fields described in DRF serializers as `JSONField()` [1] are included in swagger schema as `string` [2] fields, which leads to invalid deserialization on a client side when using pulp bindings.
Those fields deserialized as a `str` type containing repr()
result of json field passed from server.
This issue is a blocker, because it cannot be reliably workarounded on a client side as there is no reliable way to deserialize python repr()
back to a normal object.
[1] https://github.com/pulp/pulp_ansible/blob/master/pulp_ansible/app/serializers.py#L197
[2] https://pulp-ansible.readthedocs.io/en/latest/restapi.html#operation/content_ansible_collections_list
change JSONField to DictField
closes #5299 https://pulp.plan.io/issues/5299