senthilkumarkj opened a new issue #20:
URL: https://github.com/apache/airflow-client-go/issues/20


   
https://github.com/apache/airflow-client-go/blob/main/airflow/model_schedule_interval.go#L60-L114
   
   This function tries to parse the data such as 
   
   ```
   {
     "__type": "CronExpression",
     "value": "0 * * * *"
   }
   ```
   But it always matches more than 1. This is because of two things
   1) __type is a common field all 3 structs and parsing will never result in 
'{}'
   2) There are other fields that are common between `TimeDelta` and 
`RelativeDelta` like hours, seconds etc. And rest of the fields end up being 0. 
   
   I'm sending a PR to fix this. 


-- 
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-unsubscr...@airflow.apache.org

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


Reply via email to