Closed cgarciae closed 9 years ago
It seems a bug in the Processor class, which implements the Manager interface. More specifically, take a look at this method
Try to change it to:
List<HandlerMetadata> _getRoutes(dynamic metadata) {
if (metadata is ApplicationMetadata) {
return []
..addAll(metadata.routes)
..addAll(metadata.groups.expand(_getRoutes));
} else if (metadata is GroupMetadata) {
return []
..addAll(metadata.defaultRoutes)
..addAll(metadata.routes);
}
return [];
}
I didn't test it myself, so I can't guarantee that this fix the problem.
@luizmineo thanks! I'll do the change, test and update the repo.
Worked!
For test purposes I have this class
and this test route which decoded to JSON in
v0.5
but fails to decode inv0.6
If you extract the method
testTest
from theGroup
as a top level functionit works ok. @luizmineo any hints on this?