tirkarthi commented on issue #23284:
URL: https://github.com/apache/airflow/issues/23284#issuecomment-1111163808

   `is_mapped` field can be added to the `TaskSchema` that can return it in 
response. I can work on a PR if the issue is accepted.
   
   ```
   diff --git a/airflow/api_connexion/schemas/task_schema.py 
b/airflow/api_connexion/schemas/task_schema.py
   index 600d28ac0..aa9a47030 100644
   --- a/airflow/api_connexion/schemas/task_schema.py
   +++ b/airflow/api_connexion/schemas/task_schema.py
   @@ -58,6 +58,7 @@ class TaskSchema(Schema):
        sub_dag = fields.Nested(DAGSchema, dump_only=True)
        downstream_task_ids = fields.List(fields.String(), dump_only=True)
        params = fields.Method('get_params', dump_only=True)
   +    is_mapped = fields.Boolean(dump_only=True)
    
        def _get_class_reference(self, obj):
            result = ClassReferenceSchema().dump(obj)
   ```


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