<dependency>
<groupId>com.wordnik</groupId>
<artifactId>swagger-jaxrs_2.10</artifactId>
<version>1.3.10</version>
</dependency>
<dependency>
<groupId>com.wordnik</groupId>
<artifactId>swagger-jersey-jaxrs_2.10</artifactId>
<version>1.3.10</version>
</dependency> --
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.
final TypeConverter typeConverter = new TypeConverter();
typeConverter.add(TestValueWrapper.class.getName(), String.class.getName());
ModelConverters.addConverter(typeConverter, true);ModelConverters.addConverter(typeConverter, true);Can you share your converters?
On Mon, Mar 2, 2015 at 9:37 PM, anton kropp <akr...@gmail.com> wrote:
I'm creating value type wrappers in my java application such that I don't access primitives in my dropwizard resources. I'd like to be able to tell swagger to document them as if they were primitives in both the swagger-ui and in the api-docs. I've tried registering a typeconverter with the full class name of my value wrapper and the target primitive name, but it doesn't seem to show up in either the api-docs or the swagger-ui. I'm using<dependency>
<groupId>com.wordnik</groupId>
<artifactId>swagger-jaxrs_2.10</artifactId>
<version>1.3.10</version>
</dependency>
<dependency>
<groupId>com.wordnik</groupId>
<artifactId>swagger-jersey-jaxrs_2.10</artifactId>
<version>1.3.10</version>
</dependency>Any help would be great. Thanks!
--
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.
For more options, visit https://groups.google.com/d/optout.
class Person{
FirstName firstName;
LastName lastName;
}TypeConverter converter = new TypeConverter();
converter.add("FirstName", "string");
ModelConverters.addConverter(converter, true);{
"id":"FirstName",
"properties":{
"value":{
"type":"string"
}
}
}override def typeMap = Map("Firstname" -> "String"){
"id": "Person",
"properties": {
"firstName": {
"type": "string"
}
}
}
[
{
"name": "firstName",
"required": true,
"type": "FirstName",
"paramType": "path",
"allowMultiple": false
}
]