lib/open_api/dsl.rb in zero-rails_openapi-1.6.0 vs lib/open_api/dsl.rb in zero-rails_openapi-1.6.1

- old
+ new

@@ -40,10 +40,10 @@ action_path = "#{@route_base ||= controller_path}##{action}" routes = ctrl_routes_list&.select { |api| api[:action_path].match?(/^#{action_path}$/) } return puts ' ZRO'.red + " Route mapping failed: #{action_path}" if routes.blank? api = Api.new(action_path, skip: Array(skip), use: Array(use)) - .merge! description: '', summary: summary, operationId: id || "#{@doc_info[:tag][:name]}_#{action}", + .merge! description: '', summary: summary, operationId: id || "#{@doc_info[:tag][:name]}#{action.capitalize}", tags: [@doc_tag], parameters: [ ], requestBody: '', responses: { }, callbacks: { }, links: { }, security: [ ], servers: [ ] [action, :all].each { |blk_key| @zro_dry_blocks&.[](blk_key)&.each { |blk| api.instance_eval(&blk) } } api.param_use = api.param_skip = [ ] # `skip` and `use` only affect `api_dry`'s blocks api.instance_exec(&block) if block_given?