canonical / canonical/operator

Support custom model dumping in Relation.save

Open
#2,480 7 comments 0 reactions 0 assignees View on GitHub
27.04 roadmap
Dominant language
Python
Stars
267
Forks
136
Avg merge
1d 22h
Merged PRs (30d)
28

Description

In our documentation, we should encourage overriding model.model_dump and add support for doing this with non-Pydantic classes, so that people can do "write exactly this content" rather than "update this content" if they want to.

Contributor guide

Open the contributing guide

Research direction

Start by reading the Relation.save implementation and the documentation around model.model_dump. Check how saving currently handles Pydantic and non-Pydantic models, then identify the relevant tests. Done means non-Pydantic classes can request exact-content writes and the documentation explains overriding model.model_dump.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, documentation
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.