frapa-az opened a new issue #19836:
URL: https://github.com/apache/airflow/issues/19836


   ### Apache Airflow version
   
   2.0.2
   
   ### Operating System
   
   Unknown
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other Docker-based deployment
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   I am using the REST API. 
   
   When I make a request to the [DAGRun 
endpoint](https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/get_dag_runs)
 and one DAGRun is in state skipped, the request fails with 500 internal server 
error:
   
   ```text
   {
       "detail": "'skipped' is not one of ['success', 'running', 
'failed']\n\nFailed validating 'enum' in 
schema['allOf'][0]['properties']['dag_runs']['items']['properties']['state']:\n 
   {'description': 'DAG State.',\n     'enum': ['success', 'running', 
'failed'],\n     'readOnly': True,\n     'type': 'string',\n     'x-scope': 
['',\n                 '#/components/schemas/DAGRunCollection',\n               
  '#/components/schemas/DAGRun']}\n\nOn instance['dag_runs'][1]['state']:\n    
'skipped'",
       "status": 500,
       "title": "Response body does not conform to specification",
       "type": 
"https://airflow.apache.org/docs/2.0.2/stable-rest-api-ref.html#section/Errors/Unknown";
   }
   ```
   
   This seemingly happens because the state of the run is skipped, and not one 
of those three.
   
   ### What you expected to happen
   
   I would expect `state=skipped` to be returned by the API.
   
   ### How to reproduce
   
   _No response_
   
   ### Anything else
   
   I have no access and do not know how AirFlow was set-up in our current 
system.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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