Skip to content

Pydantic Error on Work Item #15

@chea-vuthearith

Description

@chea-vuthearith

Context

Plane Version: 1.2.1
Plane SDK Version: 0.2.4

Problem

Pydantic error when calling plane.work_items.retrieve()

pydantic_core._pydantic_core.ValidationError: 1 validation error for WorkItemDetail
assignees.0
  Input should be a valid dictionary or instance of UserLite [type=model_type, input_value='4b227550-993f-4c4f-9327-67017810774f', input_type=str]
    For further information visit https://errors.pydantic.dev/2.12/v/model_type

I believe the api response from plane is sending only assignee ids but the sdk expects it to be a user object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions