JSON Hyper-Schema to OpenAPI3
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
converter.rb
correct.yaml
hyper-schema.json
other_data.yml

README.md

JSON Hyper-Schema to OpenAPI3

This script not support completely convert because there is no compatibility between them.

Usage

  1. Update `schema.json' file by your JSON Hyper-Schema
  2. Write path parameter OpenAPI3 definition to other_data.yml
    • Because JSON Hyper-Schema don't need write path parameter definition, but OpenAPI3 is required.
  3. bundle install
  4. bundle exec ruby converter.rb
  5. Check output OpenAPI3 data in output.yml and output.json (there are same data)