Hi! I created a method annotation, it gets added and I see it at runtime but it does not add the rest of the annotations. I suspect org.metatype.MetaAnnotatedObject#unroll(java.lang.annotation.Annotation[]) does not get called.
Here is my custom annotation
@Metatype
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface MyApiImplicitParams {
public static class $ {
@ApiImplicitParams({@ApiImplicitParam(name="myVersion", dataType = "String", paramType = "header")})
public void method() {
}
}
}
And this is how I use it
@MyApiImplicitParams
public void myMethod() {}
Do I need to do anything else in order to make @MyApiImplicitParams add @ApiImplicitParams annotations to myMethod()? My project is a spring project. Thank you!
Hi! I created a method annotation, it gets added and I see it at runtime but it does not add the rest of the annotations. I suspect org.metatype.MetaAnnotatedObject#unroll(java.lang.annotation.Annotation[]) does not get called.
Here is my custom annotation
And this is how I use it
Do I need to do anything else in order to make @MyApiImplicitParams add @ApiImplicitParams annotations to myMethod()? My project is a spring project. Thank you!