-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support for meta-annotations #262
Comments
Hi @marceloverdijk . Thanks for this. Also see issue #29 that will solve your specific use case. However it won't solve othe cases of repeated annotations. I am also not sure if this is a GraphQL spec issue, or a general issue ( meaning you will have the same issue in JAX-RS and other places ) |
Yes I’m aware of #29 and I was about to comment on that one as well in a couple of minutes 😊 |
This is a part of the issue as we discussed on the MP mailing list about mixins and other annotation magic. Stereotypes is just one of the features we discussed. |
It's a separate requirement, but I hope we can fix it with the same toolset as #111. |
Consider this example:
The
page
andsize
arguments will occur many times in my api.So I thought about creating a page annotation like:
Unfortunately this won't work as:
@DefaultValue
has only@Target({ElementType.PARAMETER,ElementType.FIELD,ElementType.METHOD})
and notElementType.ANNOTATION_TYPE
. Maybe this could be added to make use of meta-annotations; probably this could be added to other MicroProfile GraphQL annotations as well.@Description("The page size.")
does not generate the expected description in the schema (probably SmallRye implementation specific).With meta annotation it should be possible to override on a lower level as well.
So with the example above:
it should be possible to do:
but also:
The text was updated successfully, but these errors were encountered: