Skip to content

Some operations return str, but there are proper response models #44

@csadorf

Description

@csadorf

I noticed that we are returning str on a few operations, e.g., here:

@check_capability_availability
def create_collection(
self,
collection_name: object_storage.CollectionName = None,
metadata: dict = None,
) -> str:
return self._client.put(
self._proxy_path("createCollection"),
params={"collection_name": collection_name} if collection_name else {},
headers=_encode_metadata(metadata),
).text

However, according to the API, the response is actually also a JSON object. Can we fix that inconsistency, please?

Originally posted by @csadorf in #43 (review)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions