{
"type" : "object",
"properties" : {
"street_address" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"state" : {
"type" : "string"
}
},
"oneOf" : [{
"required" : ["city"]
}, {
"required" : ["state"]
}
],
"required" : [
"street_address"
],
"additionalProperties" : false
}
这个json架构的Java类是什么? 当我生成类时,类
中没有像街道地址这样的属性答案 0 :(得分:-1)
class One{
String streetAddress;
String city;
String state;
// put getters and setters for each of the member variables.
}
我希望,您的查询将解决:)