Skip to content

Remove datastar_response decorator for FastAPI and document replacement#44

Open
gazpachoking wants to merge 1 commit intodevelopfrom
remove-fastapi-response-decorator
Open

Remove datastar_response decorator for FastAPI and document replacement#44
gazpachoking wants to merge 1 commit intodevelopfrom
remove-fastapi-response-decorator

Conversation

@gazpachoking
Copy link
Copy Markdown
Collaborator

The datastar_response decorator stopped working in recent versions of FastAPI. I'm not sure how to best implement it anymore due to the way FastAPI is inspecting the route function to support the new streaming generator syntax. However... the changes in FastAPI that broke the decorator also enable the same functionality by just declaring response_class=DatastarResponese on the route decorator, so I think it's probably okay to just drop datastar_response from that module.

I guess the open issue is just if people are stuck on older versions of FastAPI. Are there such people using the SDK that will be negatively impacted by this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant