Skip to content

Commit 0b0244e

Browse files
committed
missign dot on regexp for checking duplicated id data_pattern
1 parent 044b738 commit 0b0244e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/open_api_import.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def self.from(swagger_file, create_method_name: :operation_id, include_responses
376376
data_pattern.uniq!
377377
dpkeys = []
378378
data_pattern.reject! do |dp|
379-
dpkey = dp.scan(/^'\w+'/)
379+
dpkey = dp.scan(/^'[\w\.]+'/)
380380

381381
if dpkeys.include?(dpkey)
382382
true

open_api_import.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'open_api_import'
3-
s.version = '0.10.7'
3+
s.version = '0.10.8'
44
s.summary = "OpenApiImport -- Import a Swagger or Open API file and create a Ruby Request Hash file including all requests and responses with all the examples. The file can be in JSON or YAML"
55
s.description = "OpenApiImport -- Import a Swagger or Open API file and create a Ruby Request Hash file including all requests and responses with all the examples. The file can be in JSON or YAML"
66
s.authors = ["Mario Ruiz"]

0 commit comments

Comments
 (0)