Unalias schema in getTypeDeclaration when not generating model for alias
Description
Defining a schema for an array type, and referencing it as the items type in another array doesn't generate valid code. It happened for me in Java and go-experimental that I'm using, but might be the case for other languages as well.
https://github.com/OpenAPITools/openapi-generator/pull/4527 fixes the issue for Go and Java. We will need to do it for all other generators.
If anyone wants to help out, please reply to let us know.
openapi-generator version
Latest master
OpenAPI declaration file content or url
https://github.com/OpenAPITools/openapi-generator/issues/4362#issue-517130622