Project

Profile

Help

Issue #5299

Bindings for pulp \ pulp ansible return python `repr()` for json fields

Added by osapryki about 1 year ago. Updated about 1 month ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 57
Quarter:

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

Associated revisions

Revision 28f40e6b View on GitHub
Added by Fabricio Aguiar about 1 year ago

change JSONField to DictField

closes #5299 https://pulp.plan.io/issues/5299

History

#1 Updated by daviddavis about 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee changed from bmbouter to fao89
  • Sprint set to Sprint 57

#2 Updated by Anonymous about 1 year ago

  • Status changed from ASSIGNED to MODIFIED

#4 Updated by bmbouter about 1 month ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF