<% show_metadata = raises.reject { |ex| ex[:metadata].blank? }.size > 0 %> <% if show_metadata %><% end %> <% raises.each do |ex| %> <% if show_metadata %> <% end %> <% end %>
<%= t('apipie_dsl.exeption', default: 'Exception') %> <%= t('apipie_dsl.exeption_description', default: [:description, 'Description']) %><%= t('apipie_dsl.exeption_metadata', default: [:metadata, 'Metadata']) %>
<%= ex[:error] %> <%= ex[:description].html_safe %><%= render(partial: 'metadata', locals: { meta: ex[:metadata] }) unless ex[:metadata].blank? %>