lib/rspec_api_docs/formatter/resource/example.rb in rspec-api-docs-0.4.0 vs lib/rspec_api_docs/formatter/resource/example.rb in rspec-api-docs-0.5.0

- old
+ new

@@ -80,9 +80,14 @@ def http_method return if request_response_pairs.empty? request_response_pairs.first.first.request_method end + # @return [Hash<Symbol,String>, nil] + def notes + metadata.fetch(:note, {}) + end + private def request_response_pairs metadata.fetch(:requests, []).reject { |pair| pair.any?(&:nil?) } end