<@UE8DESG2V> maybe you can provide an example of t...
# micronaut
g
@gwolverson maybe you can provide an example of the issue in an issue report
g
Hi @Graeme, sure thing. I did a bit more digging, comparing a controller with a function and found the
AnnotatedFunctionRouteBuilder
controls routing for `@FunctionBean`'s and the
AnnotatedMethodRouteBuilder
controls routing for the
@Controller
. I noticed that the
AnnotatedMethodRouteBuilder
looks up the
@Consumes
annotation and sets accepted media types off the back of that, but no such look up happens within the
AnnotatedFunctionRouteBuilder
. I've read the documentation and seen that
@Consumes
should be usable on all components, not just controllers, so I wasn't sure if there was a specific reason as to why it doesn't seem to work/get picked up on Functions
g
could well by a bug, behaviour should be the same, functions are handled differently however as their possible inputs are more limited
g
I was going to pull down the micronaut-core library code and see if I could prove my theory, then raise an issue and possible fix... but I've got pretty limited experience with micronaut, so probably best left to the experts 🙂
👍 2
Created the issue in the
micronaut-core
project - hopefully there is enough information in there
g
thx
g
@Graeme I noticed a fix went in for the issue I raised 🙂 What's the best way for me to get access to the code which contains that fix? Or is it due in the next milestone release?
g
we will be doing 1.0.2 soon, however we publish snapshots to https://oss.sonatype.org/content/repositories/snapshots/io/micronaut/
g
Awesome, thanks! 🙂
g
1.0.2 has been released now
👍 1