cadwyn: `/docs` return 404 after adding api_version_default_value

Describe the bug

I used the example given in docs - Link

In the code, I added the default version by updating Cadwyn object creation as below

app = Cadwyn(versions=version_bundle, title="My amazing API", api_version_default_value="2002-01-01")

Without the api_version_default_value , /docs shows the API Contracts page. However, after setting the value, /docs returns {"detail":"Not Found"}

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (11 by maintainers)

Commits related to this issue

Most upvoted comments

I made a mistake of using older version of the package(5.2.0). Airflow had pin cadwyn>=5.1.3. But, somehow, it did not take the latest version(probably due to uv cache?). I now updated the min version to 5.2.0 and everything is working fine.

Sorry for the trouble @zmievsa . Thank you for being so helpful!

Not on airflow slack. I’ll join it today

I’ll try to take care of this EOD today.

Let’s reopen this one. Could you open a PR in airflow to show me the exact failing code?

https://github.com/apache/airflow/pull/48548

I don’t have permission to re-open. Can you please reopen this issue

To start airflow API server, steps to follow(assuming that you already have uv):

uv venv .venv
uv sync --all-extras --all-packages 
airflow api-server

try to access http://localhost:8080/execution/docs

It will ask for login user and password. You will find credentials in ~/airflow/simple_auth_manager_passwords.json.generated

Fixed in 5.2.1! Please, report if it persists!

Apologies for this total blunder: default value is actually a very-very new feature so it’s not as well tested as others. Will fix this too.