Skip to content

Commit 0224489

Browse files
committed
fix route with param name generation
1 parent 02c00ec commit 0224489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec_api_documentation/writers/open_api_writer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def requests
302302
end
303303

304304
def route
305-
super.gsub(/:(?<parameter>[^\/]+)/, '{\k<parameter>}')
305+
super.gsub(/:(\w+)/, '{\1}')
306306
end
307307
end
308308
end

0 commit comments

Comments
 (0)