diff --git a/lib/open_api_import.rb b/lib/open_api_import.rb index ce93aac..c181b7d 100644 --- a/lib/open_api_import.rb +++ b/lib/open_api_import.rb @@ -311,6 +311,18 @@ def self.from(swagger_file, create_method_name: :operation_id, include_responses output << description_parameters end + #for the case we still have some parameters on path that were not in 'parameters' + if path_txt.match?(/[^#]{\w+}/) + paramst = [] + prms = path_txt.scan(/[^#]{(\w+)}/) + prms.each do |p| + paramst<