Skip to content

What is "SROAP31016: Unanticipated mismatch between type arguments and type variables"? #1983

Answered by MikeEdgar
cristalp asked this question in Q&A
Discussion options

You must be logged in to vote

There are a few things going on. First, it looks like jool-java-8 may not be included in the Jandex index used by the scanner. Second, even if it were included, the resulting schema would be an array of Object (since the base Tuple is an Iterable<Object>), so I don't think you would want the default generated schema.

You should be able to get a good schema by adding something like the following to the REST method. This example results in a string array, so adjust as needed for your case. You'll need to make sure the method has a JAX-RS @Produces, otherwise the response type won't be found as expected.

@APIResponseSchema(responseCode = "200", value = String[].class)

I'll add a to-do to imp…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@cristalp
Comment options

@MikeEdgar
Comment options

@cristalp
Comment options

Comment options

You must be logged in to vote
4 replies
@MikeEdgar
Comment options

@cristalp
Comment options

@MikeEdgar
Comment options

Answer selected by cristalp
@MikeEdgar
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants