/spotlight-rails

A Swagger schema linter and analyzer.

Primary LanguageRuby

Spotlight

Welcome to Spotlight, an API documentation analyzer!

Usage

TODO: Write usage instructions

Dependencies

  • Ruby 2.4
  • PostgreSQL 9.3

Testing

RSpec is configured for testing. To run the tests:

$ bin/rspec

In the tests, you have access to the #last_response and #parsed_response methods which return, respectively, the last response object and the parsed body of the response.

Deployment

The application is already configured for deployment on Heroku, including a release command that runs DB migrations.

Provided that you have the Heroku CLI installed, deploying a new app should be as simple as:

$ heroku create
$ figaro heroku
$ git push heroku master

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/pragmarb/pragma-rails-starter.

Todos

  • Write tests for checks
  • Implement introspective checks (properties, operations)