You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an existing API that I want to create API specs for using the HttpApi module, before gradually implementing it using the HttpApiBuilder, phasing out its old implementation.
The API specs can be fully customised in what each endpoint responds with by using addSuccess and addError, except for one thing: The HttpApiDecodeError.
This means I'm unable to create an API spec to fully cover my existing API.
I posted this on Discord a while ago, but never got a response.
What is the feature you are proposing to solve the problem?
A setDecodeError method that takes a Schema<HttpApiDecodeError, T> so I can customize how those are encoded:
What about a replaceError(f: (prev: Schema | undefined) => Schema | undefined) API instead of addError? This would let the user decide what comes first, while system-added schemas would always be placed at the end.
Activity
Avaq commentedon Sep 4, 2025
Possible duplicates:
Avaq commentedon Oct 2, 2025
Reposting @gcanti's proposal here for visibility:
tim-smart commentedon Jul 28, 2026
Automated message: Effect v3 is now under a feature freeze and is now only considering bug fixes.
If this issue is still relevant for v4, then feel free to reopen :)