makeplane / makeplane/plane-python-sdk
Pydantic Error on Work Item
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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