-
-
Notifications
You must be signed in to change notification settings - Fork 526
Open
Description
Hi, I'm trying to figure out what the best method to use is for the latest version of Dango Ninja.
Example:
class EducationUpdatePayload(Schema):
type: EducationType | None = Field(
None, description="The type of education entry.", example=EducationType.MEDICAL_SCHOOL
)
institution_name: str | None = Field(
None, description="The name of the institution.", example="University of California, San Francisco"
)
start_year: int | None = Field(None, description="The year the education started.", example=2010)
end_year: int | None = Field(
None, description="The year the education ended. If None, the education is still ongoing.", example=2014
)
payload = EducationUpdatePayload(...)
payload.model_dump() OR payload.dict()?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels