vemikhaylov edited a comment on issue #14635:
URL: https://github.com/apache/airflow/issues/14635#issuecomment-791893272


   If I understand it correctly, the problem is that specification states 
passing a `DAG` object as the body of the `PATCH` request is allowed. However, 
there's the `dag_id` field there, which is `readOnly` and when we pass a full 
`DAG` object to the `PATCH`, it fails with the `400` because of the `dag_id`.
   
   Maybe all the fields except `dag_id` should be moved to the separate entity 
(e.g. `DAGData` or something), while `DAG` should include it and extend with 
`dag_id` (using `allOf`). Then the `PATCH` method will use the `DAGData` 
schema, not the `DAG` one.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to