InvokeAI/invokeai/app/api
psychedelicious 33624fc2fa fix(api): duplicate operation id for get_image_full
There's a FastAPI bug that results in the OpenAPI spec outputting the same operation id for each operation when specifying multiple HTTP methods.

- Discussion: https://github.com/tiangolo/fastapi/discussions/8449
- Pending PR to fix: https://github.com/tiangolo/fastapi/pull/10694

In our case, we have a `get_image_full` endpoint that handles GET and HEAD.

This results in an invalid OpenAPI schema. A workaround is to use two route decorators for the operation handler. This works as expected - HEAD requests get the header, and GET requests get the resource. And the OpenAPI schema is valid.
2024-08-10 07:45:23 -04:00
..
routers fix(api): duplicate operation id for get_image_full 2024-08-10 07:45:23 -04:00
dependencies.py Warn on invalid model configs in the DB rather than crashing. 2024-07-11 21:05:55 -04:00
no_cache_staticfiles.py fix(api): typo in no_cache_staticfiles.py 2024-01-22 16:10:25 +11:00
sockets.py fix(events): typing for download event handler 2024-05-27 11:13:47 +10:00