I noticed a problem with the generated java model. Given the following in system_information.data:
"languages": {
"description":
"List of languages used in translated strings. Each element in the list must be of type Language.",
"type": "array",
"pattern": "^[a-z]{2,3}(-[A-Z]{2})?$"
},
the generated type was simply List<Object>, while it should have been List<String>.
I belive this should be the correct schema:
"languages": {
"description":
"List of languages used in translated strings. Each element in the list must be of type Language.",
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z]{2,3}(-[A-Z]{2})?$"
}
},
I noticed a problem with the generated java model. Given the following in system_information.data:
the generated type was simply
List<Object>
, while it should have beenList<String>
.I belive this should be the correct schema: