bugraoz93 commented on code in PR #43102:
URL: https://github.com/apache/airflow/pull/43102#discussion_r1803935867
##########
airflow/api_fastapi/core_api/serializers/variables.py:
##########
@@ -31,7 +31,7 @@ class VariableBase(BaseModel):
model_config = ConfigDict(populate_by_name=True)
key: str
- description: str | None
+ description: str | None = Field(default=None)
Review Comment:
@pierrejeambrun, I assign these as `Field` and set their `default` to `None`
for backward compatibility, because these fields are nullable for `POST` and
`PATCH` operations. It is a bit repetitive.
--
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]