Open API 3 Parser/Validator for Ruby
Clone or download
Latest commit 70c599f Aug 30, 2018
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.rubocop.yml
.ruby-version
.travis.yml
CHANGELOG.md
Gemfile
LICENCE
README.md
Rakefile
TODO.md
openapi3_parser.gemspec

README.md

OpenAPI 3 Parser

Build Status

This is a parser/validator for Open API 3 built in Ruby.

Example usage:

require "openapi3_parser"

document = Openapi3Parser.load_file("path/to/example.yaml")

# check whether document is valid
document.valid?

# traverse document
document.paths["/"]

Documentation for the API to navigate the OpenAPI nodes is available on rubydoc.info.

Installation

You can install this gem into your bundler application by adding this line to your Gemfile:

gem "openapi3_parser", "~> 0.5.0"

and then running $ bundle install

Or install the gem onto your machine via $ gem install openapi3_parser

Status

This is currently a work in progress and will remain so until it reaches 1.0.

See TODO for details of the roadmap there.

Licence

MIT License