ashb commented on code in PR #47951:
URL: https://github.com/apache/airflow/pull/47951#discussion_r2004003141
##########
task-sdk/dev/generate_models.py:
##########
@@ -80,20 +76,20 @@ def load_config():
return cfg
-def generate_file(app: FastAPI):
- # The persisted openapi spec will list all endpoints (public and ui), this
- # is used for code generation.
- for route in app.routes:
- if getattr(route, "name") == "webapp":
- continue
- route.__setattr__("include_in_schema", True)
+def generate_file():
+ api_version = "2025-03-19"
Review Comment:
We could probably get the latest version out of the app.
I'll add a todo comment for this rather than do now though
--
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]