<!-- Please follow the issue template below for bug reports and feature requests. Also please indicate in the issue title which language/library is concerned. Eg: [JAVA] Bug generating foo with bar --> ##### Description openapi-generator doesn't recognized nested "required" of schemas. <!-- describe what is the question, suggestion or issue and why this is a problem for you. --> ##### openapi-generator version current master 56c4751e74ca80e6004897230dac9f3ee6523459 <!-- which version of openapi-generator are you using, is it a regression? --> ##### OpenAPI declaration file content or url https://gist.github.com/fujigon/3690e1c285ed0a1e06e344bf306725f4 <!-- if it is a bug, a json or yaml that produces it. If you post the code inline, please wrap it with ```yaml (here your code) ``` (for YAML code) or ```json (here your code) ``` (for JSON code), so it becomes more readable. If it is longer than about ten lines, please create a Gist (https://gist.github.com) or upload it somewhere else and link it here. --> ##### Command line used for generation ``` # git clone, etc mvn package java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i my-api-spec/openapi.yaml -g jaxrs-jersey -o generated-code/ -v ``` <!-- including the language, libraries and various options --> ##### Steps to reproduce When I execute the generator with the gisted openapi.yaml file, I get https://gist.github.com/fujigon/40c38652ca1ce6a93b0e5dbc2de277e8#file-stdout-L370 . The problem is that, I set "bar" is as "required" (https://gist.github.com/fujigon/3690e1c285ed0a1e06e344bf306725f4#file-openapi-yaml-L24), but the openapi-generator doesn't recognize it. <!-- unambiguous set of steps to reproduce the bug.--> ##### Related issues/PRs <!-- has a similar issue/PR been reported/opened before? Please do a search in https://github.com/openapitools/openapi-generator/issues?utf8=%E2%9C%93&q=is%3Aissue%20 --> ##### Suggest a fix/enhancement https://github.com/OpenAPITools/openapi-generator/pull/1200 <!-- if you can't fix the bug yourself, perhaps you can point to what might be causing the problem (line of code or commit), or simply make a suggestion -->
Description
openapi-generator doesn't recognized nested "required" of schemas.
openapi-generator version
current master 56c4751
OpenAPI declaration file content or url
https://gist.github.com/fujigon/3690e1c285ed0a1e06e344bf306725f4
Command line used for generation
Steps to reproduce
When I execute the generator with the gisted openapi.yaml file, I get
https://gist.github.com/fujigon/40c38652ca1ce6a93b0e5dbc2de277e8#file-stdout-L370 .
The problem is that, I set "bar" is as "required" (https://gist.github.com/fujigon/3690e1c285ed0a1e06e344bf306725f4#file-openapi-yaml-L24), but the openapi-generator doesn't recognize it.
Related issues/PRs
Suggest a fix/enhancement
#1200