Actions
Issue #3856
closedIn the bindings, href docstring is ambiguous and sometimes has the wrong type
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
API Bindings
Sprint:
Sprint 42
Quarter:
Description
Looking at the API bindings:
class RepositoriesApi(object):
def repositories_versions_create(self, href, data, **kwargs): # noqa: E501
"""repositories_versions_create # noqa: E501
:param str href: A relative URI for the resource. (required)
:param RepositoryVersion data: (required)
:return: AsnycOperationResponse
If the method is called asynchronously,
returns the request thread.
"""
pass
def repositories_versions_delete(self, href, **kwargs): # noqa: E501
"""repositories_versions_delete # noqa: E501
:param int href: A relative URI for the resource. (required)
:return: AsnycOperationResponse
If the method is called asynchronously,
returns the request thread.
"""
It's not totally clear what href means. Also, for repositories_versions_delete()
it says the href type is an int.
Actions
Problem: OpenAPI schema doesn't use URIs to identify resources
Solution: Create a custom OpenAPI generator that refers to resources by their URI.
closes #3856 https://pulp.plan.io/issues/3856
closes #3851 https://pulp.plan.io/issues/3851