title: Moustache template for Swagger codegen static documentation - responseMessages
body: <p>I am trying to use swagger-codegen to generate static-docs.</p>
  
  <p>The docs are generated based on Moustache templates that are included in the project.</p>
  
  <p>When I run it with the sample JSON from wordnik Swagger api-docs, it generates everything perfectly (every api has it's own .file like Pet.html, User.html), but when I try to run it with similar JSON of mine, it generates only 1 operations file containing all the methods of my REST api.</p>
  
  <p>Wordnik JSON reponse can be found at <a href="http://petstore.swagger.wordnik.com/api/api-docs" rel="nofollow">worndik JSON api</a></p>
  
  <p>Mine API response looks like this:</p>
  
  <pre><code>{"apiVersion":"1.0","swaggerVersion":"1.2","apis":[{"path":"/default/countries","description":"Operations about countries"},{"path":"/default/gateways","description":"Operations on payment gateways"},{"path":"/default/location","description":"Operations about locations"},{"path":"/default/mccs","description":"Operations about MCCs"},{"path":"/default/merchants","description":"Operations about merchants"},{"path":"/default/partners","description":"Operations about partners"},{"path":"/default/payments","description":"Operations about payments"},{"path":"/default/resources","description":"Operations about resources"},{"path":"/default/terminals","description":"Operations about terminals"},{"path":"/default/terminalsubsetdefaultresourceset","description":"Operations about terminalSubsetDefaultResourceSet"},{"path":"/default/users","description":"Operations about users"}],"info":{"title":"my API","description":"","termsOfServiceUrl":"","contact":"","license":"","licenseUrl":""}}
  </code></pre>
  
  <p>Also, I would like to extract ReponseMessage Codes in every operation that has them in JSON. I tried to add </p>
  
  <p><code>{{#ResponseMessages}}
      &lt;h3 class="responseMessages"&gt;{{message}}&lt;/h3&gt;
      {{/ResponseMessages}}</code></p>
  
  <p>to operations.model, but It doesn't work (not with myApi, nor with Wordnik) (I have similar JSON like this:<a href="http://petstore.swagger.wordnik.com/api/api-docs/pet" rel="nofollow">JSON with responseCodes</a></p>