Use swagger codegen cli to generate Node.js server with models
<p>I have a <strong>swagger.yaml</strong> and just installed the <strong>swagger-codegen</strong> on my Mac. I want to generate a Node.js server including the models described in the swagger.yaml from the command line. I tried:</p>

<pre><code>java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i swagger.yaml -l nodejs -o export/nodejs -Dmodels
</code></pre>

<p>and</p>

<pre><code>java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i swagger.yaml -l nodejs -o export/nodejs -Dmodels -DsupportingFiles
</code></pre>

<p>But the output is always the same <strong>WITHOUT</strong> the models:</p>

<p><a href="https://i.stack.imgur.com/nIsvQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nIsvQ.png" alt="enter image description here"></a></p>

<p>What is wrong?</p>