Sha256: dbbcb32e92b254239c8e5e4b98a4c7c3ba43f1f563d46bf29f787eb2aa5d87e3

Contents?: true

Size: 596 Bytes

Versions: 8

Compression:

Stored size: 596 Bytes

Contents

<% if parameters.any? %>
<h4 id="<%= id %>">Parameters</h4>
<table>
<thead>
<tr><th>Parameter</th><th>In</th><th>Type</th><th>Required</th><th>Description</th></tr>
</thead>
<tbody>
<% parameters.each do |parameter| %>
<tr>
<td><%= parameter.name %></td>
<td><%= parameter.in %></td>
<td><%= parameter.schema.type %></td>
<td><%= parameter.required? %></td>
<td><%= parameter.description_html %>
<% if parameter.schema.enum %>
<p>Available items:</p>
<ul>
<% parameter.schema.enum.each do |item| %>
<li><%= item %></li>
<% end %>
</ul>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
govuk_tech_docs-3.0.0 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.4.3 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.4.2 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.4.1 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.4.0 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.3.0 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.2.2 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.2.1 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb