Skip to content

Migrate to Pydantic v2: Replace .dict() with .model_dump() #1132

@coderabbitai

Description

@coderabbitai

Context

The codebase currently uses Pydantic v1's .dict() method for model serialization. When migrating to Pydantic v2, this will need to be updated to .model_dump() to avoid deprecation warnings.

Background

This was identified during code review of PR #1130, where .dict() is used in the NATS queue implementation for serializing PipelineProcessingTask objects.

Task

When upgrading to Pydantic v2:

  • Replace all instances of .dict() with .model_dump() across the codebase
  • Test to ensure serialization behavior remains consistent

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions