Sha256: 618f1302c296f53efeb25627000787202586f2e64294fcd22ff8088d190f9efb
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
<% endpoint.responses.each do |response| %> <% next unless response.success? %> <% next if response.code.to_i == 204 %> <% next unless response.content %> <% id = SecureRandom.hex %> <p class="collapsible"> <a class="Vlt-js-accordion__trigger Nxd-accordion-button" data-accordion="acc<%= id %>"> <span class="response-description-toggle Vlt-btn Vlt-btn--tertiary Vlt-btn--block"> <%= auto_expand_responses ? 'Hide' : 'View' %> response field descriptions </span> </a> </p> <div id="acc<%= id %>" class="Vlt-js-accordion__content <%= auto_expand_responses ? 'Vlt-js-accordion__content_open' : '' %>"> <h4>Response Fields</h4> <% response.formats.each_with_index do |format, index| %> <% if response.exhibits_one_of_multiple_schemas?(format) %> <%= erb :'open_api/_response_tabs', locals: { format: format, response: response, content: :descriptions } %> <% else %> <% schema = response.schema(format) %> <%= erb :'open_api/_response_fields', locals: { schema: schema, format: format, index: nil } %> <% end %> <% end %> </div> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems