Pydantic Error on Work Item
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
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.
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
- Dominant language
- Python
- Stars
- 17
- Forks
- 24
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 2
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.
More from makeplane/plane-python-sdk
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
All issues in makeplane/plane-python-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Openarea: ci bug perceived difficulty: 3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ClickHouse/clickhouse-connect#1057 ·