openapi-contrib / openapi3-generator

Use your API OpenAPI 3 definition to generate code, documentation, and literally anything you need.
Apache License 2.0
90 stars 27 forks source link

Fall back to schema name if we don't have a title #19

Closed russell closed 5 years ago

russell commented 5 years ago

When rendering the petstore example the schemas in the toc are blank because of missing title attributes, falling back to the schema name works in this case.

* [Servers](#servers)
* [Paths](#paths)
  - [`GET` /pets](#op-get-pets) 
  - [`POST` /pets](#op-post-pets) 
  - [`GET` /pets/{petId}](#op-get-pets-petid) 
* [Schemas](#schemas)
  -
  -
  -
fmvilas commented 5 years ago

Looks good. Thanks!

fmvilas commented 5 years ago

It is now on npm. Thank you!