-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oasfilter IndexView contains duplicate annotations #2191
Comments
I see how this could happen and yes, a |
actually, it is an annotation from our custom security framework (dont ask..). We annotate our resource methods like this:
In my If I remember correctly, i worked around this problem by wrapping the annotationinstances in a HashSet. |
Oh that's interesting. Do you know what Jandex version the runtime you're using includes? Or are you using either the Maven or Gradle plugin? The reason is that if the runtime (e.g. Quarkus) is passing a composite index to smallrye-open-api, then using the stacked index here will not help. |
Quarkus 3.18.2
I just looked at the code again, I use a |
It looks like Quarkus 3.18 may still be using the |
I have an OASFilter which uses the provided IndexView:
While scanning through the index using e.g.
index.getAnnotations(Annotation.class)
, I get the AnnotationInstance's returned duplicated.https://smallrye.io/blog/jandex-3-2-0/
Jandex has a stacked index view, which only returns the first result.
The text was updated successfully, but these errors were encountered: