You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My model class has a method to get a model type. The path is declared on both the method and the type. This is currently returning improper nesting of values. I'm not sure if I'm not doing this properly, or if it's an issue with using Jackson 1.9 and Swagger 1.5.16.... UPDATE: This is supported in the containers as a json provider for jaxb elements. So my feeling is this is likely highly used. This aritcle desribes it from Jboss' standpoint: (https://docs.jboss.org/resteasy/docs/1.1.GA/userguide/html/Built_in_JAXB_providers.html)
Model Class examples:
@ApiModel(value="Example")
@XmlAccessorType( XmlAccessType.NONE )
@XmlRootElement( name = "example" )
publicclassExampleextendsBaseExample {
...
}
@XmlAccessorType( XmlAccessType.NONE )
publicabstractclassBaseExample {
@XmlElement( name = "typeName" )
publicTypeNamegetTypeName(){...}
}
@XmlAccessorType( XmlAccessType.PROPERTY )
@XmlRootElement( name = "typeName" )
publicclassTypeName{
@ApiModelProperty( example="SAMPLETYPENAME" )
@XmlValuepublicStringgetName(){...}
@ApiModelProperty( value="This should produce an href attribute, and does", example="example.com" )
@XmlAttribute( name = "href" )
publicStringgetHref() {...}
}
And that generates something similar to this as an example:
My model class has a method to get a model type. The path is declared on both the method and the type. This is currently returning improper nesting of values. I'm not sure if I'm not doing this properly, or if it's an issue with using Jackson 1.9 and Swagger 1.5.16....
UPDATE: This is supported in the containers as a json provider for jaxb elements. So my feeling is this is likely highly used. This aritcle desribes it from Jboss' standpoint: (https://docs.jboss.org/resteasy/docs/1.1.GA/userguide/html/Built_in_JAXB_providers.html)
Model Class examples:
And that generates something similar to this as an example:
The expected (and what the server actually returns from a call to the API:
An appropriate version of this in json would be as follows:
The text was updated successfully, but these errors were encountered: