Convenience method to avoid boilerplate using map() with a AnyVal case-classes (which can be tagged with Value[T])
Convenience method to avoid boilerplate using map() with a AnyVal case-classes (which can be tagged with Value[T])
- the value type of the case class AnyVal
function to take the input string from the request and attempt to construct a deserialized instance of T.
function to take the input string from the request and attempt to construct a deserialized instance of T. Exceptions are automatically caught and translated into the appropriate result, so just concentrate on the Happy-path case
Uni-directional map functions for this ParameterSpec type.
Uni-directional map functions for this ParameterSpec type. Use this to implement custom Parameter types
Bi-directional map functions for this ParameterSpec type.
Bi-directional map functions for this ParameterSpec type. Use this to implement custom Parameter types
The parameter type to be used in the documentation.
The parameter type to be used in the documentation. For custom types, this is usually ObjectParamType (for JSON) or StringParamType
function to take the input type and serialize it to a string to be represented in the request
Spec required to marshal and unmarshal a parameter of a custom type
the type of the deserialised parameter
a parameter for retrieving a value of type [T] from the request