Skip to content

[bug]: Pydantic error in the latest release #586

Open

Description

@seven-dev

Description

The Indices API behind the package seems to be returning 3 less fields and the pydantic validator doesn't account for it.
Here are the field names: lastBuildTimeS, numberOfPendingTasks, pendingTask

Code:

    client.list_indices()

Client

Seearch

Version

4.48.0

Relevant log output

pydantic_core._pydantic_core.ValidationError: 3 validation errors for FetchedIndex
  lastBuildTimeS
    Field required [type=missing, input_value={'name': 'products_fr_fr'...ucts_created_at_desc)']}, input_type=dict]
      For further information visit https://errors.pydantic.dev/2.12/v/missing
  numberOfPendingTasks
    Field required [type=missing, input_value={'name': 'products_fr_fr'...ucts_created_at_desc)']}, input_type=dict]
      For further information visit https://errors.pydantic.dev/2.12/v/missing
  pendingTask
    Field required [type=missing, input_value={'name': 'products_fr_fr'...ucts_created_at_desc)']}, input_type=dict]
      For further information visit https://errors.pydantic.dev/2.12/v/missing

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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