-
-
Notifications
You must be signed in to change notification settings - Fork 440
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
What is the problem this feature would solve?
As a developer, I want my Public API to have a standardized error format following RFC 9457, that does not use Effect's proprietary _tag for differentiation.
Currently, HttpApi doesn't support Schema.transform and HttpApiDecodeError is hardcoded for every API route (even if it doesn't have any kind of input. #4751)
What is the feature you are proposing to solve the problem?
- Make
Schema.transformwork forHttpApi - Allow overriding
HttpApiDecodeErroror transforming it somehow (Allow HttpApiEndpoint to override HttpApiDecodeError response #4751)
What alternatives have you considered?
It's possible to solve this by creating some kind of middleware and OpenAPI transform, but this is really ugly and prone to break.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request