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

Update generated rswag_ui.rb to use openapi_endpoint. #749

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simi
Copy link

@simi simi commented May 9, 2024

Problem

Recently I have created new app and installed RSwag and it emits deprecation warning by default.

Solution

Change template for generated rswag_ui.rb initializer to use openapi_endpoint instead of deprecated swagger_endpoint.

Checklist

  • Added tests (there is no test related per my understanding)
  • Changelog updated (should I add entry?)

Steps to Test or Reproduce

Run rails g rswag:install in new app.

- swagger_endpoint is deprecated now
@simi simi marked this pull request as ready for review May 10, 2024 15:27
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

Successfully merging this pull request may close these issues.

None yet

1 participant