Closed ITurchenko closed 3 years ago
Allow usage Optional<T>? in @QueryParam
Optional<T>?
@QueryParam
data class OptionalRequest( @QueryParam("strictly optional", allowEmptyValues = true) val optInt: Optional<Int>? = null )
Result /request?optInt=1 > Optional.of(1) /request?optInt= > Optional.empty() /request?optInt=null > Optional.empty() /request > null
Allow usage
Optional<T>?
in@QueryParam
Result /request?optInt=1 > Optional.of(1) /request?optInt= > Optional.empty() /request?optInt=null > Optional.empty() /request > null