You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/05 21:04:09 UTC

[GitHub] [airflow] subkanthi commented on issue #20442: Error when using a numeric param in DAG

subkanthi commented on issue #20442:
URL: https://github.com/apache/airflow/issues/20442#issuecomment-1006075195


   The problem is here in this line, because the value is of type 'str' and so the `not isinstance` isnt working as expected.
   
   ```
           # If we have a value, validate it once. May raise ValueError.
           if not isinstance(value, ArgNotSet):
               try:
                   jsonschema.validate(value, schema, format_checker=FormatChecker())
               except ValidationError as err:
                   raise ValueError(err)
   ```
   
   <img width="1247" alt="Screen Shot 2022-01-05 at 4 01 44 PM" src="https://user-images.githubusercontent.com/17434846/148288963-ff3b4950-16e3-47d6-aa2d-b3775e9fd35e.png">
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org