From 1a8b1fc6981c79e7776ff834bb8faa3c4961c061 Mon Sep 17 00:00:00 2001 From: Roman Blanco <1187051+romanblanco@users.noreply.github.com> Date: Thu, 7 Dec 2023 00:16:47 +0000 Subject: [PATCH] DEV: Bump rswag-specs from 2.11.0 to 2.13.0 (#24654) --- Gemfile | 4 +--- Gemfile.lock | 8 ++++---- spec/swagger_helper.rb | 12 ++++++------ 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/Gemfile b/Gemfile index e46541ddd69..131f0664fd8 100644 --- a/Gemfile +++ b/Gemfile @@ -150,9 +150,7 @@ group :test, :development do gem "rubocop-discourse", require: false gem "parallel_tests" - # Depreciation warnings that we can't act on is being printed out in the test output. - # See https://github.com/rswag/rswag/issues/703 - gem "rswag-specs", "2.11.0" + gem "rswag-specs" gem "annotate" diff --git a/Gemfile.lock b/Gemfile.lock index cfd9690cc57..44f51a2bc19 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -185,7 +185,7 @@ GEM in_threads (1.6.0) jmespath (1.6.2) json (2.7.1) - json-schema (3.0.0) + json-schema (4.1.1) addressable (>= 2.8) json_schemer (2.1.1) hana (~> 1.3) @@ -407,9 +407,9 @@ GEM rspec-support (3.12.1) rss (0.3.0) rexml - rswag-specs (2.11.0) + rswag-specs (2.13.0) activesupport (>= 3.1, < 7.2) - json-schema (>= 2.2, < 4.0) + json-schema (>= 2.2, < 5.0) railties (>= 3.1, < 7.2) rspec-core (>= 2.14) rtlcss (0.2.1) @@ -638,7 +638,7 @@ DEPENDENCIES rspec-html-matchers rspec-rails rss - rswag-specs (= 2.11.0) + rswag-specs rtlcss rubocop-discourse ruby-prof diff --git a/spec/swagger_helper.rb b/spec/swagger_helper.rb index 6ab5ea12c8a..761b42bc8ac 100644 --- a/spec/swagger_helper.rb +++ b/spec/swagger_helper.rb @@ -89,15 +89,15 @@ RSpec.configure do |config| # Specify a root folder where Swagger JSON files are generated # NOTE: If you're using the rswag-api to serve API descriptions, you'll need # to ensure that it's configured to serve Swagger from the same folder - config.swagger_root = Rails.root.join("openapi").to_s + config.openapi_root = Rails.root.join("openapi").to_s # Define one or more Swagger documents and provide global metadata for each one # When you run the 'rswag:specs:swaggerize' rake task, the complete Swagger will - # be generated at the provided relative path under swagger_root + # be generated at the provided relative path under openapi_root # By default, the operations defined in spec files are added to the first - # document below. You can override this behavior by adding a swagger_doc tag to the - # the root example_group in your specs, e.g. describe '...', swagger_doc: 'v2/swagger.json' - config.swagger_docs = { + # document below. You can override this behavior by adding a openapi_spec tag to the + # the root example_group in your specs, e.g. describe '...', openapi_spec: 'v2/swagger.json' + config.openapi_specs = { "openapi.yaml" => { openapi: "3.1.0", info: { @@ -135,5 +135,5 @@ RSpec.configure do |config| # The swagger_docs configuration option has the filename including format in # the key, this may want to be changed to avoid putting yaml in json files. # Defaults to json. Accepts ':json' and ':yaml'. - config.swagger_format = :yaml + config.openapi_format = :yaml end