Skip to content

Commit

Permalink
fix: rebranding Swagger to OpenAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
romanblanco committed Dec 16, 2023
1 parent ef5e860 commit d62a427
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -1144,7 +1144,7 @@ bundle exec rake rswag:ui:copy_assets[public/api-docs]
__NOTE:__: The provided subfolder MUST correspond to the UI mount prefix - "api-docs" by default.


Notes to test swagger output locally with swagger editor
Notes to test OpenAPI output locally with Swagger editor
```
docker pull swaggerapi/swagger-editor
```
Expand Down
Expand Up @@ -6,9 +6,9 @@
# that it's configured to generate files in the same folder
c.openapi_root = Rails.root.to_s + '/openapi'

# Inject a lambda function to alter the returned Swagger prior to serialization
# Inject a lambda function to alter the returned OpenAPI prior to serialization
# The function will have access to the rack env for the current request
# For example, you could leverage this to dynamically assign the "host" property
#
#c.swagger_filter = lambda { |swagger, env| swagger['host'] = env['HTTP_HOST'] }
#c.openapi_filter = lambda { |swagger, env| swagger['host'] = env['HTTP_HOST'] }
end

0 comments on commit d62a427

Please sign in to comment.