Skip to content

Rename field validator parameter from 'field' to 'value' for Pydantic v2 convention #1362

@coderabbitai

Description

@coderabbitai

Description

Update field validator parameter names to match Pydantic v2 documentation conventions by renaming field to value.

Locations to update

  1. validate_network_address in components/job-orchestration/job_orchestration/scheduler/job_config.py
  2. valid_status in components/job-orchestration/job_orchestration/scheduler/scheduler_data.py

Context

This is a stylistic change to align with the latest Pydantic v2 documentation conventions where field validators use value as the parameter name for the field being validated.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions