Description
this open-api spech part:
"CollectionCalendarDto": {
"type": "object",
"properties": {
"calendar": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "integer"
}
}
},
generates correctly the property
Map<String, List<int>> calendar;
but the fromJson method is wrong:
return CollectionCalendarDto(
calendar: json[r'calendar'] == null
? const {}
: mapCastOfType<String, List>(json, r'calendar'),
mostWornWatch: WatchTinyDto.fromJson(json[r'most_worn_watch']),
);
the int is missing and as this is a required type it should have a trailing !
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Description
this open-api spech part:
generates correctly the property
but the
fromJsonmethod is wrong:the
intis missing and as this is a required type it should have a trailing!openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix