Are there any generators that support OpenAPI 3?

8.5k views Asked by At

At the time of writing this the OpenAPI 3 spec is relatively new. I am struggling to find any documentation generators that support version 3.0.

Does anyone know of generators that support OpenAPI v3.0?

4

There are 4 answers

1
William Cheng On BEST ANSWER

You can try OpenAPI Generator (https://openapi-generator.tech), which supports both OpenAPI spec v2, v3 and released a stable version (3.0.0) a few days ago.

Using docker, you can easily generate the API documentation:

docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate \
    -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml \
    -g html2 \
    -o /local/out/html2
3
Mike On

You will find a curated list of tools and libraries in the OAI Implementations document found at GitHub.

0
tuggo On

A bit late to the party, I found it very useful for node.js express projects

oas-generator for Open API 3.0 spec: Link

0
Ted Epstein On

A couple of new developments to add:

  • RepreZen API Studio now supports OpenAPI-Generator, referenced above by William. (Note: I work for RepreZen.)
  • OpenAPI.Tools is another great resource for OpenAPI v3-compatible editors, generators, doc formats, and other tools.