# File lib/skeleton/serializers/options.rb, line 172 def response_to_h(response) hash = { description: response.description } if response.schema? hash[:schema] = schema_to_h(response.schema) end hash[:headers] = {} response.headers.each do |field, header| hash[:headers][field] = schema_to_h(header) end hash end