m1racoli commented on issue #48809: URL: https://github.com/apache/airflow/issues/48809#issuecomment-2779679533
@jscheffl I'm considering replacing the [datetime response](https://github.com/apache/airflow/blob/e84a745bd99e2a0d40de68b1c220c43ccf787ed9/providers/edge/src/airflow/providers/edge/worker_api/routes/worker.py#L173) with a pydantic model. ```python class WorkerRegistrationReturn(BaseModel): """The return class for the worker registration.""" last_update: Annotated[datetime, Field(description="Time of the last update of the worker.")] ``` I think data serialization and deserialization should be exclusively handled by pydantic. Let me know what you think. 🙂 (... and also whom else I could discuss this with) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
