EndpointErrorOutputVariantsOps
Type members
Types
Value members
Abstract methods
Concrete methods
Adds a new error variant, where the current error output is represented as a Left
, and the given one as a Right
.
Adds a new error variant, where the current error output is represented as a Left
, and the given one as a Right
.
Adds a new error output variant. The new variant will be checked first during encoding/decoding, before the endpoint's current output.
Adds a new error output variant. The new variant will be checked first during encoding/decoding, before the endpoint's current output.
More specifically, the current error output is replaced with a Tapir.oneOf output, where:
- the first output variant is the given
o
- the second output variant is the current
errorOutput
, wrapped with Tapir.oneOfDefaultVariant
- Type Params
- E2
A common supertype of the new variant and the current output
E
.
- Value Params
- o
The variant to add. Can be created given an output with one of the Tapir.oneOfVariant methods.
Adds a new error variant, where the current error output is mapped to conform to the common supertype E2
using the f
and g
functions.
Adds a new error variant, where the current error output is mapped to conform to the common supertype E2
using the f
and g
functions.
Adds new error output variants. The new variants will be checked first during encoding/decoding, before the endpoint's current output.
Adds new error output variants. The new variants will be checked first during encoding/decoding, before the endpoint's current output.
More specifically, the current error output is replaced with a Tapir.oneOf output, where:
- the initial output variants are the given
first
andother
- the last output variant is the current
errorOutput
, wrapped with Tapir.oneOfDefaultVariant
- Type Params
- E2
A common supertype of the new variant and the current output
E
.
- Value Params
- first
The first variant to add. Can be created given an output with one of the Tapir.oneOfVariant methods.
- other
Additional variants to add.
Adds new error variants, where the current error output is mapped to conform to the common supertype E2
using the f
and g
functions.
Adds new error variants, where the current error output is mapped to conform to the common supertype E2
using the f
and g
functions.