Skip to content

It would be nice if we could keep the traceback in serialization errors #828

Open
@samuelcolvin

Description

@samuelcolvin

See pydantic/pydantic#6893 (reply in thread)

(EDIT by @davidhewitt - the above related to validators, and is fixed after #844)

It would be nice if errors within functional serializers showed a traceback with both model_dump and model_dump_json.

model_dump shouldn't be that hard, but model_dump_json might require some wizardry from @davidhewitt, or maybe it's just not possible?

Selected Assignee: @davidhewitt

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions