lib/open_api/dsl.rb in zero-rails_openapi-1.5.4 vs lib/open_api/dsl.rb in zero-rails_openapi-1.5.5

- old
+ new

@@ -38,10 +38,11 @@ routes = ctrl_routes_list&.select { |api| api[:action_path].match?(/^#{action_path}$/) } return puts ' ZRO'.red + " Route mapping failed: #{@route_base}##{action}" if routes.blank? api = ApiInfo.new(action_path, skip: Array(skip), use: Array(use)) .merge! description: '', summary: summary, operationId: action, tags: [@doc_tag], - parameters: [ ], requestBody: '', responses: { }, security: [ ], servers: [ ] + 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? api.process_objs api.delete_if { |_, v| v.blank? }