[ 
https://issues.apache.org/jira/browse/AIRFLOW-6425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17006995#comment-17006995
 ] 

ASF GitHub Bot commented on AIRFLOW-6425:
-----------------------------------------

kaxil commented on pull request #7002: [AIRFLOW-6425] Serialization: Add 
missing DAG parameters to Json Schema
URL: https://github.com/apache/airflow/pull/7002
 
 
   
 
----------------------------------------------------------------
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]


> Serialization: Add missing DAG parameters to Json Schema
> --------------------------------------------------------
>
>                 Key: AIRFLOW-6425
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6425
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: core, DAG
>    Affects Versions: 1.10.7
>            Reporter: Kaxil Naik
>            Assignee: Kaxil Naik
>            Priority: Major
>             Fix For: 1.10.8
>
>
> The following DAG currently fails:
> Schema Validation error when DAG.is_paused_upon_creation is set
> {code:python}
> def make_simple_dag():
>     """Make very simple DAG to verify serialization result."""
>     dag = DAG(
>         dag_id='simple_dag',
>         default_args={
>             "retries": 1,
>             "retry_delay": timedelta(minutes=5),
>             "depends_on_past": False,
>         },
>         start_date=datetime(2019, 8, 1),
>         is_paused_upon_creation=True,
>     )
>     BaseOperator(task_id='simple_task', dag=dag, owner='airflow')
>     CustomOperator(task_id='custom_task', dag=dag)
>     return {'simple_dag': dag}
> {code}
> *Error*:
> {noformat}
>  jsonschema.exceptions.ValidationError: Additional properties are not allowed 
> ('is_paused_upon_creation' was unexpected)
> {noformat}
> *Reason*:
> `is_paused_upon_creation` is in DAG.get_serialized_fields() but not in the 
> Schema definition.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to