{"action":"created","issue":{"url":"https://api.github.com/repos/stoicflame/enunciate/issues/205","labels_url":"https://api.github.com/repos/stoicflame/enunciate/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/stoicflame/enunciate/issues/205/comments","events_url":"https://api.github.com/repos/stoicflame/enunciate/issues/205/events","html_url":"https://github.com/stoicflame/enunciate/issues/205","id":115072008,"number":205,"title":"Annotations help: @Label @Typehint and Javadoc","user":{"login":"chibi03","id":1598867,"avatar_url":"https://avatars.githubusercontent.com/u/1598867?v=3","gravatar_id":"","url":"https://api.github.com/users/chibi03","html_url":"https://github.com/chibi03","followers_url":"https://api.github.com/users/chibi03/followers","following_url":"https://api.github.com/users/chibi03/following{/other_user}","gists_url":"https://api.github.com/users/chibi03/gists{/gist_id}","starred_url":"https://api.github.com/users/chibi03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chibi03/subscriptions","organizations_url":"https://api.github.com/users/chibi03/orgs","repos_url":"https://api.github.com/users/chibi03/repos","events_url":"https://api.github.com/users/chibi03/events{/privacy}","received_events_url":"https://api.github.com/users/chibi03/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stoicflame/enunciate/labels/support","name":"support","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-04T14:59:49Z","updated_at":"2015-11-06T11:52:23Z","closed_at":"2015-11-04T17:38:45Z","body":"Hi,\r\nthanks for the new release.\r\nI was looking at the new annotation @Label, where should it be added, just at the class definition? Does the class still need any JAXB annotations to be detected?\r\n\r\nDo I need to enable something specific for the JavaDoc annotations i.e. @throws to show up?\r\n\r\nFinally keep getting the following error when trying to use @TypeHint:\r\n````\r\njava.lang.RuntimeException: java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract java.lang.Class com.webcohesion.enunciate.metadata.rs.TypeHint.value() (Found data of type java.lang.Class<?>)\r\n\tat com.sun.tools.javac.main.Main.compile(Main.java:469)\r\n\tat com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)\r\n\tat com.webcohesion.enunciate.Enunciate.run(Enunciate.java:656)\r\n\tat core.EnunciateTrigger.run(EnunciateTrigger.java:98)\r\n\tat core.Main.main(Main.java:31)\r\nCaused by: java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract java.lang.Class com.webcohesion.enunciate.metadata.rs.TypeHint.value() (Found data of type java.lang.Class<?>)\r\n\tat com.sun.tools.javac.model.AnnotationProxyMaker$ValueVisitor$1AnnotationTypeMismatchExceptionProxy.generateException(AnnotationProxyMaker.java:264)\r\n\tat sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:83)\r\n\tat com.sun.proxy.$Proxy9.value(Unknown Source)\r\n\tat com.webcohesion.enunciate.util.TypeHintUtils.getTypeHint(TypeHintUtils.java:23)\r\n\tat com.webcohesion.enunciate.modules.jaxrs.model.ResourceMethod.<init>(ResourceMethod.java:161)\r\n\tat com.webcohesion.enunciate.modules.jaxrs.model.Resource.getResourceMethods(Resource.java:166)\r\n\tat com.webcohesion.enunciate.modules.jaxrs.model.Resource.<init>(Resource.java:88)\r\n\tat com.webcohesion.enunciate.modules.jaxrs.model.RootResource.<init>(RootResource.java:36)\r\n\tat com.webcohesion.enunciate.modules.jaxrs.JaxrsModule.call(JaxrsModule.java:96)\r\n\tat com.webcohesion.enunciate.io.InvokeEnunciateModule.onNext(InvokeEnunciateModule.java:31)\r\n\tat com.webcohesion.enunciate.io.InvokeEnunciateModule.onNext(InvokeEnunciateModule.java:10)\r\n\tat rx.internal.operators.OperatorDoOnEach$1.onNext(OperatorDoOnEach.java:79)\r\n\tat rx.internal.operators.OperatorSingle$ParentSubscriber.onCompleted(OperatorSingle.java:109)\r\n\tat rx.internal.operators.NotificationLite.accept(NotificationLite.java:140)\r\n\tat rx.internal.operators.TakeLastQueueProducer.emit(TakeLastQueueProducer.java:100)\r\n\tat rx.internal.operators.TakeLastQueueProducer.startEmitting(TakeLastQueueProducer.java:45)\r\n\tat rx.internal.operators.OperatorTakeLast$1.onCompleted(OperatorTakeLast.java:59)\r\n\tat rx.internal.operators.OperatorMerge$MergeSubscriber.drainAndComplete(OperatorMerge.java:521)\r\n\tat rx.internal.operators.OperatorMerge$MergeSubscriber.completeInner(OperatorMerge.java:486)\r\n\tat rx.internal.operators.OperatorMerge$InnerSubscriber.emit(OperatorMerge.java:658)\r\n\tat rx.internal.operators.OperatorMerge$InnerSubscriber.onCompleted(OperatorMerge.java:600)\r\n\tat rx.internal.util.ScalarSynchronousObservable$ScalarSynchronousAction.call(ScalarSynchronousObservable.java:117)\r\n\tat rx.schedulers.ExecutorScheduler$ExecutorAction.run(ExecutorScheduler.java:173)\r\n\tat rx.schedulers.ExecutorScheduler$ExecutorSchedulerWorker.run(ExecutorScheduler.java:99)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: com.webcohesion.enunciate.EnunciateContext.class\r\n\tat rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:101)\r\n\tat rx.internal.operators.OperatorDoOnEach$1.onNext(OperatorDoOnEach.java:81)\r\n\t... 15 more\r\n````\r\n\r\nWhen debugging I also found getAnnotation(TypeHint.class) was returning:\r\n`@com.webcohesion.enunciate.metadata.rs.TypeHint(qualifiedName=##NONE, value=<error>)`\r\nAlthough I set it to `@TypeHint(value=MyClass.class)` and MyClass.class is defined as XmlRootElement. \r\nAny help would be very much appreciated. "},"comment":{"url":"https://api.github.com/repos/stoicflame/enunciate/issues/comments/154392166","html_url":"https://github.com/stoicflame/enunciate/issues/205#issuecomment-154392166","issue_url":"https://api.github.com/repos/stoicflame/enunciate/issues/205","id":154392166,"user":{"login":"chibi03","id":1598867,"avatar_url":"https://avatars.githubusercontent.com/u/1598867?v=3","gravatar_id":"","url":"https://api.github.com/users/chibi03","html_url":"https://github.com/chibi03","followers_url":"https://api.github.com/users/chibi03/followers","following_url":"https://api.github.com/users/chibi03/following{/other_user}","gists_url":"https://api.github.com/users/chibi03/gists{/gist_id}","starred_url":"https://api.github.com/users/chibi03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chibi03/subscriptions","organizations_url":"https://api.github.com/users/chibi03/orgs","repos_url":"https://api.github.com/users/chibi03/repos","events_url":"https://api.github.com/users/chibi03/events{/privacy}","received_events_url":"https://api.github.com/users/chibi03/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T11:52:23Z","updated_at":"2015-11-06T11:52:23Z","body":"How can I specify it for the RequestBody ? If I just add the annotation my method it just shows up at the ResponseBody. And is it possibly to hint multiple dataTypes?"}}