diff --git a/lib/swagger_yard.rb b/lib/swagger_yard.rb index 4d79959..000462b 100644 --- a/lib/swagger_yard.rb +++ b/lib/swagger_yard.rb @@ -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