Skip to content

Review the error response types specifications #24

@sheepla

Description

@sheepla

I want to review the error response types specifications and improve the type-safe, OpenAPI-first design.

The current implementation required the use of IResult i.e. the "loose" type to return a custom error. However, this requires manual annotation to the Configure() method, which is different from the desired result that the type is safe and the OpenAPI schema is automatically derived by default.

Therefore, I will improve the IEndpoint interface so that the OpenAPI schema is automatically derived by explicitly specifying the type even if I return a custom error in my plan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions