Sha256: 37d87eee02050c319dfff2e6335e62ab37b84bc1fa1a72e9ecdc8c90528028b0
Contents?: true
Size: 890 Bytes
Versions: 8
Compression:
Stored size: 890 Bytes
Contents
<h3 id="<%= id = 'schema-' + title; id.parameterize %>"><%= title %></h3> <%= schema.description_html %> <% if properties.any? %> <table class='<%= id.parameterize %>'> <thead> <tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th><th>Schema</th></tr> </thead> <tbody> <% properties.each do |property_name, property_attributes| %> <tr> <td><%= property_name %></td> <td><%= property_attributes.type %></td> <td><%= schema.requires?(property_name) %></td> <td><%= property_attributes.description_html %></td> <td> <%= linked_schema = property_attributes # If property is an array, check the items property for a reference. if property_attributes.type == 'array' linked_schema = property_attributes['items'] end # Only print a link if it's a named schema get_schema_link(linked_schema) if linked_schema.name %> </td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems