Compare commits

...

1 Commits
dev ... openapi

Author SHA1 Message Date
Daniel O'Connor
fea2f6ff61 Fix deprecations 2025-08-27 14:28:14 +00:00
2 changed files with 8 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ RSpec.configure do |config|
# By default, the operations defined in spec files are added to the first # 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 # 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' # the root example_group in your specs, e.g. describe '...', swagger_doc: 'v2/swagger.json'
config.swagger_docs = { config.openapi_specs = {
'v1/swagger.yaml' => { 'v1/swagger.yaml' => {
openapi: '3.0.1', openapi: '3.0.1',
info: { info: {
@@ -29,5 +29,5 @@ RSpec.configure do |config|
# The swagger_docs configuration option has the filename including format in # 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. # the key, this may want to be changed to avoid putting yaml in json files.
# Defaults to json. Accepts ':json' and ':yaml'. # Defaults to json. Accepts ':json' and ':yaml'.
config.swagger_format = :yaml config.openapi_format = :yaml
end end

6
swagger/v1/swagger.yaml Normal file
View File

@@ -0,0 +1,6 @@
---
openapi: 3.0.1
info:
title: API V1
version: v1
paths: {}