A proof of concept tool to convert a JSON version of the Submit data model into an OpenAPI 3.0 spec. There are more examples of the Submit data model in the submit-prototype-kit repo.
$ bin/to_openapi.rb example/apply-for-a-medal.json
Swagger is a suite of tools for working with OpenAPI specifications, the editor tool is useful to visualise the output of this tool.