hterik commented on issue #19884: URL: https://github.com/apache/airflow/issues/19884#issuecomment-982794103
@MatrixManAtYrService Sorry, i didn't think of the de-serialization scenario. It's only the to_json that would be as simple as i imagined at first. Deserializing would need either the serialized data to contain the class name itself, which can be a security risk, or registering a list of valid deserializers, or relying on the type hints. One more suggestion is to add the type information in the @task-annotation, something along the lines of `@task(arg_types=Baz)` could work. -- 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]
