Skip to content

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

@andrewnguonly

Description

@andrewnguonly

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"}

Metadata

Metadata

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