bugraoz93 commented on PR #49844:
URL: https://github.com/apache/airflow/pull/49844#issuecomment-2840274753

   > Below code is getting auto generated and added to generated.py . Any help 
@bugraoz93 on how to fix this? Tried running pre-commit but it doesn't help.
   > 
   > ```python
   > class JsonValue(RootModel[Any]):
   >     root: Any
   > ```
   
   That generation is expected. We are syncing the `datamodels` with 
`airflowctl` to maintain multiple functionalities without too many changes 
automatically. These are the first teething issues we are experiencing so they 
will be less and less in the future.
   
   > To fix: `airflow-ctl/tests/airflow_ctl/api/test_operations.py:666: error: 
Argument...`
   > 
   > You can just use that instead in line 666
   > 
   > ```python
   >     variable = VariableBody.model_validate(
   >         {"key": key, "value": value, "description": description},
   >     )
   > ```
   
   Thanks Pierre! Indeed, this should solve it. 
   
   
   


-- 
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]

Reply via email to