SamWheating opened a new pull request, #30113:
URL: https://github.com/apache/airflow/pull/30113

   closes: https://github.com/apache/airflow/issues/30075
   
   This allows incoming API requests to create DAGs in non-queued states 
(`running`, `success`, `failed`), which is more consistent with the 
documentation. 
   
   As-per the original issue, I'm not sure whether:
    - The code is wrong (in which case this is the correct fix)
     - The documentation generated from the OpenAPI spec is wrong (which is due 
to the reference overriding the readOnly attribute 
[here](https://github.com/apache/airflow/blob/a6715805c7e4694e85b8f3ebff162a2c3905110e/airflow/api_connexion/openapi/v1.yaml#L2806-L2808),
 as described 
[here](https://github.com/swagger-api/swagger-ui/issues/3445#issuecomment-339649576)).
     
   Let me know what you think, and if you think that this functionality is 
undesirable then I can update my PR to simply fix the API Docs.
   
   Tested in Breeze by creating several non-queued DAGRuns via the API.


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