Skip to content

Commit

Permalink
Fix - Clear Yard Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGirard committed Nov 4, 2021
1 parent 9d0c324 commit 2bc70a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/swagger_yard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def requires_type(tag)
# @return [YARD] objects representing class/methods and tags from the file
#
def yard_objects_from_file(file_path, *types)
::YARD::Registry.clear
::YARD.parse(file_path)
::YARD::Registry.all(*types).select {|co| co.file == file_path }
end
Expand Down

0 comments on commit 2bc70a6

Please sign in to comment.