Start here
The safe first move
Replace schema_extra with json_schema_extra in your model_config.
Stop before automation when: schema_extra as a callable that needs signature changes. Files with other unsupported Config keys.
Target shape
class User(BaseModel):
model_config = ConfigDict(
json_schema_extra={"examples": [{"name": "Alice"}]}
)