https://kotlinlang.org logo
#micronaut
Title
# micronaut
g

Graeme

12/10/2018, 9:03 AM
@gwolverson maybe you can provide an example of the issue in an issue report
g

gwolverson

12/10/2018, 9:07 AM
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

Graeme

12/10/2018, 9:08 AM
could well by a bug, behaviour should be the same, functions are handled differently however as their possible inputs are more limited
g

gwolverson

12/10/2018, 9:09 AM
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

Graeme

12/11/2018, 10:44 AM
thx
g

gwolverson

12/17/2018, 10:55 AM
@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

Graeme

12/17/2018, 10:56 AM
we will be doing 1.0.2 soon, however we publish snapshots to https://oss.sonatype.org/content/repositories/snapshots/io/micronaut/
g

gwolverson

12/17/2018, 10:59 AM
Awesome, thanks! 🙂
g

Graeme

12/20/2018, 7:37 AM
1.0.2 has been released now
👍 1
3 Views