Skip to content

One operation with multiple output types #642

Answered by kubukoz
khanetor asked this question in Q&A
Discussion options

You must be logged in to vote

I think you can use a union, but with the @Untagged trait. Your output type will still be a struct, but it'll have one member annotated with @httpPayload.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Baccata
Comment options

@khanetor
Comment options

@Baccata
Comment options

@khanetor
Comment options

@khanetor
Comment options

Answer selected by Baccata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants