You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the above command with the included yaml. Notice that DefaultRequest::fromJson() doesn't deserialize anything. Then remove required items from DefaultRequest in the yaml and generate the server again. DefaultRequest::fromJson() will correctly check if the items exist and deserialize them.
The text was updated successfully, but these errors were encountered:
Description
When a datatype references other datatypes as properties, the generated fromJson function does not deserialize required items.
openapi-generator version
4.0.0-beta3
OpenAPI declaration file content or url
Command line used for generation
java -jar .\openapi-generator-cli-4.0.0-beta3.jar generate -i default.yaml -g cpp-pistache-server -o pistache
Steps to reproduce
Run the above command with the included yaml. Notice that DefaultRequest::fromJson() doesn't deserialize anything. Then remove required items from DefaultRequest in the yaml and generate the server again. DefaultRequest::fromJson() will correctly check if the items exist and deserialize them.
The text was updated successfully, but these errors were encountered: