From fea2f6ff616cd6349668b3fa4553d232b3c58b00 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Wed, 27 Aug 2025 14:28:14 +0000 Subject: [PATCH] Fix deprecations --- spec/swagger_helper.rb | 4 ++-- swagger/v1/swagger.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 swagger/v1/swagger.yaml diff --git a/spec/swagger_helper.rb b/spec/swagger_helper.rb index f3e6d536e3..22268cec4b 100644 --- a/spec/swagger_helper.rb +++ b/spec/swagger_helper.rb @@ -14,7 +14,7 @@ # 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 = { + config.openapi_specs = { 'v1/swagger.yaml' => { openapi: '3.0.1', info: { @@ -29,5 +29,5 @@ # 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 diff --git a/swagger/v1/swagger.yaml b/swagger/v1/swagger.yaml new file mode 100644 index 0000000000..e96bfd21ed --- /dev/null +++ b/swagger/v1/swagger.yaml @@ -0,0 +1,6 @@ +--- +openapi: 3.0.1 +info: + title: API V1 + version: v1 +paths: {}