Skip to content

Commit

Permalink
fixup! Fix Swagger config deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosCodes committed Apr 12, 2023
1 parent 39e7077 commit 92e2175
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/tasks/apipie.rake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace :apipie do
end

desc "Generate static swagger json"
task :static_swagger_json, [:version, :swagger_content_type_input, :filename_suffix] => :environment do |t, args|
task :static_swagger_json, [:version, :content_type_input, :filename_suffix] => :environment do |t, args|
with_loaded_documentation do
out = ENV["OUT"] || File.join(Rails.root, Apipie.configuration.doc_path, 'apidoc')
generate_swagger_using_args(args, out)
Expand All @@ -66,7 +66,7 @@ namespace :apipie do
# reference files have the
# if more than 3 references are detected, the older ones will be purged
desc "Did swagger output change since the last execution of this task?"
task :did_swagger_change, [:version, :swagger_content_type_input, :filename_suffix] => :environment do |t, args|
task :did_swagger_change, [:version, :content_type_input, :filename_suffix] => :environment do |t, args|
with_loaded_documentation do
out = ENV["OUT_REF"] || File.join(Rails.root, Apipie.configuration.doc_path, 'apidoc_ref')
paths = generate_swagger_using_args(args, out)
Expand Down Expand Up @@ -202,11 +202,11 @@ namespace :apipie do
)

Apipie.configuration.generator.swagger.content_type_input =
args[:swagger_content_type_input].to_sym
args[:content_type_input].to_sym

count = 0

sfx = args[:filename_suffix] || "_#{args[:swagger_content_type_input]}"
sfx = args[:filename_suffix] || "_#{args[:content_type_input]}"

paths = []

Expand Down

0 comments on commit 92e2175

Please sign in to comment.