Hi all,
Got a small issue that we're trying to overcome using com.wordnik:swagger-jersey-jaxrs_2.10:1.3.1.
We have request objects that are deserialized using Jackson JSON annotations. We use primitives for the constructor, but the getters do the data conversion into some tiny type identifiers, JodaTime LocalDate and BigDecimal (from Double).
The problem we are having is that when we use @ApiModelProperty(required = true, dataType = "string") the type isn't reported as string, it's still reported as the actual type of the model getter.
We have tried: dataType = "string", dataType = "String", dataType = "java.lang.String" on both the field (which is of type String) and the getter (which is a tiny type identifier object) and the generated docs always say $ref: "Object".
Is there something we are missing? Are we taking the right approach for describing the request API model?
We can keep our request objects as primitives and delegate type conversion to somewhere else, but it adds bulk to the process for the sake of documentation.
Any help greatly appreciated.
Cheers,
Wade