Closed Tetraquark closed 3 years ago
It looks like there are no ways to fix it inside moko-network-generator. So, the way to work around this problem is to declare a schema in the specification using oneOf
operator:
BlogPermissionsRoles:
type: object
additionalProperties:
type: array
items:
oneOf:
- type: null
- type: string
Check issue from OpenAPITools project for more info: https://github.com/OpenAPITools/openapi-generator/issues/5180
I got schema like this:
And the generator makes the wrong type for this scheme:
Should be nullable
kotlin.String
insideList
.