But i want to use a Separate Class for the definition of JsonString in Data Type.
Like we can define for Reponse in @ApiOperation(value = "Add Alerts", response = JSONObject.class)
Is there way we define something like DataType?
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
models) " datatype. I have defined Tag.java (Attached) and i want to use it in the Ali,If the user is supposed to send you a string, then it works as expected.
You can override parameter definitions using @ApiParam and @ApiImplicitParam
On Fri, May 23, 2014 at 1:36 PM, Ali Abbas <s.ali.ab...@gmail.com> wrote:
I want output something like that
Wanted define DataType for the Param other from it's original.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscri...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
...On Friday, May 23, 2014 5:54:56 PM UTC+5, Ron R wrote:<blockquote class="gmail_quote" st
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
Print of Stack Trace.
...One thing that i Stuck on is in using "<a href="https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#527-model-object" style="color:rgb(65,131,196);font-family:Helvetica,arial,freesans,cl
--
...
Print of Stack Trace.
... 
...</b
public class DefaultHttpRequestPreprocessor implements HttpRequestPreprocessor
{
private static final String CHARSET = "charset";
private static final String UTF_8 = "utf-8";
private static final MediaType APPLICATION_JSON_UTF_8_TYPE = new MediaType(
APPLICATION_JSON_TYPE.getType(),
APPLICATION_JSON_TYPE.getSubtype(),
ImmutableMap.of(CHARSET, UTF_8));
@Override
public void preProcess(HttpRequest request)
{
List<MediaType> acceptableMediaTypes = request.getHttpHeaders().getAcceptableMediaTypes();
if (acceptableMediaTypes.contains(APPLICATION_JSON_TYPE))
{
acceptableMediaTypes.add(APPLICATION_JSON_UTF_8_TYPE);
}
}
}public class DefaultResteasyBootstrap extends ResteasyBootstrap
{
@Override
public void contextInitialized(ServletContextEvent event)
{
super.contextInitialized(event);
deployment.getDispatcher().addHttpPreprocessor(new DefaultHttpRequestPreprocessor());
}
}
ServletContextHandler servletContextHandler = new WebAppContext();
servletContextHandler.addEventListener(new DefaultResteasyBootstrap());No, i didn't figured it out yet. Not sure what exactly the problem is?
(...)
Print of Stack Trace.
...(...)