Dev-iL commented on PR #61532:
URL: https://github.com/apache/airflow/pull/61532#issuecomment-3873765647
> I think the change from `str` to `UUID` in `datamodels` will also
impact `airflow-client-python`, since it is generated from the yaml.
>
> Maybe we could add a `field_serializer` to ensure the responses remain
compatible with the response layer.
>
> ```python
> @field_serializer("id", when_used="always")
> def serialize_id(self, id_value: UUID) -> str:
> return str(id_value)
> ```
Couple of questions:
1. Why `str(id_value)` (dashed) and not `id_value.hex` (dashless)?
2. Should we have a test for this behavior if it is some API we must adhere
to?
--
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]