Skip to content

Undefined list-multi, reminder, opportunity-multi field types in response #11

@joscha

Description

@joscha

This is currently failing with

pydantic_core._pydantic_core.ValidationError: 2 validation errors for list[ListEntryWithEntity]
0.person.entity.fields.6.value
  Input tag 'note' found using 'type' does not match any of the expected tags: 'company-multi', 'company', 'datetime', 'dropdown-multi', 'dropdown', 'number-multi', 'number', 'formula-number', 'interaction', 'location-multi', 'location', 'person-multi', 'person', 'ranked-dropdown', 'filterable-text-multi', 'filterable-text', 'text' [type=union_tag_invalid, input_value={'type': 'note'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.12/v/union_tag_invalid
0.person.entity.fields.7.value
  Input tag 'connections' found using 'type' does not match any of the expected tags: 'company-multi', 'company', 'datetime', 'dropdown-multi', 'dropdown', 'number-multi', 'number', 'formula-number', 'interaction', 'location-multi', 'location', 'person-multi', 'person', 'ranked-dropdown', 'filterable-text-multi', 'filterable-text', 'text' [type=union_tag_invalid, input_value={'type': 'connections', 'data': None}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.12/v/union_tag_invalid

our data pipeline started failing on Oct 15, 2025 at 12:01 AM (UTC) - the last successful run was on Oct 14, 2025 at 12:01 AM (UTC).
So somewhere in between now the Person entity has a new field with type of note and connections.
However the OpenAPI spec that is current, does not specify this.
The current set for fields is:

        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "company-multi": "#/components/schemas/CompaniesValueUpdate",
            "company": "#/components/schemas/CompanyValueUpdate",
            "datetime": "#/components/schemas/DateValue",
            "dropdown": "#/components/schemas/DropdownValueUpdate",
            "dropdown-multi": "#/components/schemas/DropdownsValueUpdate",
            "number": "#/components/schemas/FloatValue",
            "number-multi": "#/components/schemas/FloatsValue",
            "location": "#/components/schemas/LocationValue",
            "location-multi": "#/components/schemas/LocationsValue",
            "person": "#/components/schemas/PersonValueUpdate",
            "person-multi": "#/components/schemas/PersonsValueUpdate",
            "ranked-dropdown": "#/components/schemas/RankedDropdownValueUpdate",
            "filterable-text": "#/components/schemas/TextValue",
            "filterable-text-multi": "#/components/schemas/TextsValue",
            "text": "#/components/schemas/TextValue"
          }
        },

@collinsauve sorry to mention you here, but do you have an idea why the spec is not matching the data returned?

Metadata

Metadata

Assignees

No one assigned

    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