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 OpenAPI handlers as endpoint.Operations #324

Closed
3 tasks
Zaba505 opened this issue Nov 9, 2024 · 0 comments · Fixed by #325
Closed
3 tasks

story(rest): implement OpenAPI handlers as endpoint.Operations #324

Zaba505 opened this issue Nov 9, 2024 · 0 comments · Fixed by #325
Assignees
Labels
breaking change This change will cause a breaking change enhancement New feature or request

Comments

@Zaba505
Copy link
Member

Zaba505 commented Nov 9, 2024

Description

As a user, I want to be able to capture any potential errors from serving the OpenAPI schema, so that I can quickly resolve any issues with the schema definition of my endpoint operations.

Currently, rest.OpenApiJsonHandler and rest.OpenApiYamlHandler do not log/capture any errors and simply just return a generic HTTP 500 status code.

Acceptance Criteria

  • rest.OpenApiJsonHandler should be implemented as a endpoint.Operation
  • rest.OpenApiYamlHandler should be implemented as a endpoint.Operation
  • both rest.OpenApiJsonHandler and rest.OpenApiYamlHandler should allow for a endpoint.ErrorHandler to be provided

Related Issues

No response

@Zaba505 Zaba505 added enhancement New feature or request breaking change This change will cause a breaking change labels Nov 9, 2024
@Zaba505 Zaba505 self-assigned this Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This change will cause a breaking change enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant