[英]jsonSchema2Pojo how to generate HashMap with String as key and value as another class generated using schema
I wanted to generate POJO classes from json schema, in which one of the attribute in the generated class should be a map of type - Map<String, List>.我想从 json 模式生成 POJO 类,其中生成的 class 中的属性之一应该是 map 类型 - Map<String, List>。 Here CustomClass should be a class generated using jsonnSchema2pojo plugin.
这里的 CustomClass 应该是使用 jsonnSchema2pojo 插件生成的 class。
How do we achieve this in schema?我们如何在模式中实现这一点? How does the schema looks like?
模式看起来如何?
Search for Extensions > javaType on https://www.jsonschema2pojo.org/ - And I am sure you can do that.在https://www.jsonschema2pojo.org/上搜索 Extensions > javaType - 我相信你可以做到。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.