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

story(rest): implement an operation middleware for validating http.ResponseWriter usage #280

Open
3 tasks
Zaba505 opened this issue Sep 19, 2024 · 0 comments
Open
3 tasks
Assignees
Labels
enhancement New feature or request

Comments

@Zaba505
Copy link
Member

Zaba505 commented Sep 19, 2024

Description

As a user, I want to wrap all my rest.Operations in a middleware that validates all http.ResponseWriter method calls against the OpenAPI operation definition, so that I can enforce those writing the API operations to also properly document the API operations.

Acceptance Criteria

  • Add a 500 status code with empty body as a possible option to the OpenAPI operation definition
  • Validate response headers against those defined in the OpenAPI operation definition
  • Validate response status code against those defined in the OpenAPI operation definition

Related Issues

No response

@Zaba505 Zaba505 added the enhancement New feature or request label Sep 19, 2024
@Zaba505 Zaba505 self-assigned this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant