Sha256: 1a7ee2c240369f1efadf9d1008e3e3c198a93c9df701315cce2b1fabf06900a3

Contents?: true

Size: 601 Bytes

Versions: 34

Compression:

Stored size: 601 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><%= markdown(parameter.description) %>
<% 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

34 entries across 34 versions & 2 rubygems

Version Path
govuk_tech_docs-2.2.0 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.1.1 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.1.0 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.13 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.12 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.11 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.10 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.9 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.8 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.7 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.6 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.5 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.4 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.3 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.2 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.1 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.0.pre.test.pre.release.pre.525 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.0.pre.test.pre.release.pre.524 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.0.test.pre.release.521 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb
govuk_tech_docs-2.0.0 lib/govuk_tech_docs/api_reference/templates/parameters.html.erb