makeplane / makeplane/plane-python-sdk

Pydantic Error on Work Item

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
17
Forks
24
Avg merge
8d 9h
Merged PRs (30d)
2

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure through plane.work_items.retrieve() and inspect the WorkItemDetail validation path. Compare the API response's assignees values with the expected UserLite shape; done means work-item retrieval accepts the returned assignee data without the reported ValidationError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.