Skip to content

decoders not shared to the mounted routes #3400

@kliushnichenko

Description

@kliushnichenko

Unlike jooby2 in 3.x decoders installed in the main app is not applied to the routes were mounted from another app

class AppA extends Jooby {
    {
        post("/pets", ctx -> ctx.body(Pet.class));
    }
}

class MainApp extends Jooby {
    {
       install(new JacksonModule());
       mount(new AppA());
    }
  }

Now hit post("/pets") and you will catch UnsupportedMediaType error, cause Jackson decoder was overridden at the copy route stage.
Hope it wasn't changed intentionally and we can return the Jooby2 behaviour

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions