Auth
An input with authentication credentials metadata, used when generating documentation.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Single[T]trait EndpointInput[T]trait EndpointTransput[T]trait EndpointTransputMacros[T]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Authentication inputs in the same group will always become a single security requirement in the documentation (requiring all authentication methods), even if they are all optional.
Authentication inputs in the same group will always become a single security requirement in the documentation (requiring all authentication methods), even if they are all optional.
Attributes
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- EndpointInput
Attributes
- Inherited from:
- EndpointInput
Attributes
- Inherited from:
- EndpointTransput
Attributes
- Inherited from:
- EndpointTransput
Attributes
- Inherited from:
- EndpointTransputMacros
Adds the given validator, and maps to the given higher-level type U
.
Adds the given validator, and maps to the given higher-level type U
.
Unlike a .validate(v).map(f)(g)
invocation, during decoding the validator is run before applying the f
function. If there are validation errors, decoding fails. However, the validator is then invoked again on the fully decoded value.
This is useful to create inputs/outputs for types, which are unrepresentable unless the validator's condition is met, e.g. due to preconditions in the constructor.
Attributes
- See also
- Inherited from:
- EndpointTransput
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Adds a validator.
Adds a validator.
Note that validation is run on a fully decoded value. That is, during decoding, first the decoding functions are run, followed by validations. Hence any functions provided in subsequent .map
s or .mapDecode
s will be invoked before validation.
Attributes
- See also
- Inherited from:
- EndpointTransput