Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable to use it with OpenAPI 3.0 #1

Open
2 of 13 tasks
sotayamashita opened this issue Oct 9, 2018 · 0 comments
Open
2 of 13 tasks

Enable to use it with OpenAPI 3.0 #1

sotayamashita opened this issue Oct 9, 2018 · 0 comments
Assignees

Comments

@sotayamashita
Copy link
Owner

sotayamashita commented Oct 9, 2018

TODO (Order of priority)

  • Understand how it works.
  • Commit OpenAPI3.0 specification.
  • Enable to load file from local.
  • Enable to use the format with Yaml and JSON.
  • Update rspec
  • Setup TravisCI, dependabot and Codecov
  • Add an appropriate license.
  • Add a comment to the OpenAPI 3.0 westfieldlabs/apivore#113
  • Add ## Installation section to README.md.
  • Add ## Usage section for [:get, :post, :put, :patch, :delete] to README.md.
  • Add ## RoR support version section to README.md
    • [ ok ] Rails 5.2
  • Merge Let rails users know to use rails_helper westfieldlabs/apivore#117 into feature/openapi-v3
    • Keep effort commit info
  • Add a post which describe how to add an appropriate license for Apache2.0.

Memo

gem "rspec-rails"
+ gem 'apivore',  github: "sotayamashita/apivore"

Troubleshooting

ActionController::UnknownFormat:

# in one controller
class API::ApplicationController
    before_action :set_default_response_format
    def set_default_response_format
        request.format = :json
    end

or

# in rspec
it { expect(subject).to validate(:get, "~/", 200, {"_header": "Content-Type: application/json"}) }

References

@sotayamashita sotayamashita self-assigned this Oct 10, 2018
@sotayamashita sotayamashita changed the title Use with OpenAPI 3.0 Enable to use it with OpenAPI 3.0 Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant