Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#236 1 commento 2 reazioni 1 assegnatario Vedi su GitHub

@alzheltkovskiy-hubspot ci sta già lavorando.

Dal 17/12/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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"}
Lingua principale
Python
Stelle
434
Fork
126
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HubSpot/hubspot-api-python

Tutte le issue di HubSpot/hubspot-api-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.