Skip to content

Conversation

@ITurchenko
Copy link
Contributor

Allow usage Optional<T>? in @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

@Wicpar Wicpar merged commit ec7d012 into papsign:master Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants