Response Schema with jax-rs Response Class as return type


#1

Hi,

I am using jaxrs-raml maven plugin to generate raml file.

When i use return type as jax-rs method return type as Response.class building my response object inside it,
Not getting the schema generated for my response object

@Path
@Consumes
@Produces
public Response getDetails() {
response = Response.OK(baseobject).build();
return response;
}

In this case I am not getting schema generated fir my baseobject , where as when it is
@Path
@Consumes
@Produces
public BaseObject getDetails() {
return baseobject;
}

In this case , schema is generated properly.

Can anyone help on this? since have existing rest services trying to document without making much changes in it?


#2

This feature requires some less or more advanced type inferencing which is not implemented in raml-for-jaxrs currently,
I have filed a Feature request

Regards,
Pavel