Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add response type option to endpoints #27

Merged
merged 1 commit into from
May 15, 2024

Conversation

mattbearman
Copy link
Contributor

@mattbearman mattbearman commented May 14, 2024

Refactors the way in which the response type is set to be part of the endpoint definition DSL, rather than at runtime via the plain_text_body method, as this allows Open API to infer the response type from the endpoint definition

The plain_text_body method has been left in for backwards compatibility, but marked as depreciated, as it doesn't play nice with our Open API library

Once this is released we can update the Open API lib to support plain text responses - apiaframework/apia-openapi#62

@mattbearman mattbearman force-pushed the endpoint-response-type branch from ba5c303 to c4216c0 Compare May 14, 2024 15:22
@mattbearman mattbearman marked this pull request as ready for review May 14, 2024 15:26
@mattbearman mattbearman merged commit ee7efe8 into main May 15, 2024
9 checks passed
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.

3 participants