Skip to content

@Param name attribute is being ignored by MVC APT code generator. #3466

@agentgt

Description

@agentgt
@Path("/simple")
public class SimpleController {

	@POST("/test")
	public String post(@Param(value = { ParamSource.QUERY, ParamSource.FORM }, name = "client_id") UUID clientId) {
		return "hello";
	}
}

Notice how clientId is actually "client_id"

Will generate code:

    public String post(io.jooby.Context ctx) {
      return this.factory.apply(ctx).post(ctx.lookup("clientId", io.jooby.ParamSource.QUERY, io.jooby.ParamSource.FORM).to(java.util.UUID.class));
    }

clientId is being used on ctx.lookup

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