问题描述
我们有一个带有com.fasterxml.jackson.databind.JsonNode字段的类
@XmlType(name = "sectionRepresentation",propOrder = {
"name","properties"
})
@Getter
@Setter
@ToString
@EqualsAndHashCode
public class SectionRepresentation {
@XmlElement(required = true)
@NotNull
private String name;
@XmlElement(type = String.class)
@XmlSchemaType(name = "string")
@XmlJavaTypeAdapter(JsonNodeXmlAdaptor.class)
private JsonNode properties;
}
现在,当我们生成大型Java客户端时,我们得到了
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen",date = "2020-09-17T16:54:43.462+02:00")
public class SectionRepresentation {
@Serializedname("name")
private String name = null;
@Serializedname("properties")
private ERRORUNKNowN properties = null;
有没有办法让我们大张旗鼓地生成正确的字段?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)