Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Open API type of `sorts` parameter for `PublicObjectSearchRequest` should be mapped to a class

Open
#236 1 comment 2 reactions 1 assignee View on GitHub

@alzheltkovskiy-hubspot is already working on this.

Since Dec 17, 2024.

Assessment

This issue has not been assessed yet.

Description

The sorts parameter of the PublicObjectSearchRequest class (all CRM objects) is mapped to the Open API type list[str]. However, the HubSpot API accepts sorts as an array of objects:

sorts = [
    {
        "propertyName": "hs_lastmodifieddate",
        "direction": "DESCENDING",
    }
]

Similar to the filter_groups parameter, the sorts parameter should be mapped to a Sort class with the appropriate attributes.

Example:

openapi_types = {"filter_groups": "list[FilterGroup]", "sorts": "list[Sort]", "query": "str", "properties": "list[str]", "limit": "int", "after": "int"}
Dominant language
Python
Stars
434
Forks
126
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HubSpot/hubspot-api-python

All issues in HubSpot/hubspot-api-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.