title: Generate request-example in Swagger codegen
body: <p>I'm attempting to write a new language module for <a href="http://swagger.io/swagger-codegen/" rel="nofollow noreferrer">swagger codegen</a>. In my generated client, I would like to include an example request. An instance of this can be seen in <a href="http://petstore.swagger.io/#/pet" rel="nofollow noreferrer">swagger UI</a> under "Example Value"</p>
  
  <p><a href="https://i.stack.imgur.com/7n9ME.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7n9ME.png" alt="enter image description here"></a></p>
  
  <p>The text itself doesn't seem to be contained in swagger spec for this service, but is constructed from the request object model, recursively de-referencing sub models.</p>
  
  <p>Is there a straightforward way to generate this string within the codegen library? If I have to borrow code from SwaggerUI instead, is there a java implementation I can look at?</p>