@(fields: Iterable[core.Field])

<table class="table table-hover table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Datatype</th>
      <th>Required?</th>
      <th>Multi valued?</th>
      <th>Default</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
   @fields.map { field =>
     <tr>
       <td>@field.name</td>
       <td>@field.dataType.name @field.format.map { v => (@v.name [e.g. @v.example] - @v.description) }</td>
       <td>@if(field.required && field.default.isEmpty) { Yes } else { No }</td>
       <td>@if(field.multiple) { Yes } else { No }</td>
       <td>@field.default.getOrElse("-")</td>
       <td>@field.description.getOrElse("")
           <p>
             @field.references.map { r => References: <a href="#">@r.label</a><br/> }
             @field.example.map { v => Example: @v<br/> }
             @field.minimum.map { v => Minimum: @v<br/> }
             @field.maximum.map { v => Maximum: @v<br/> }
           </p>
       </td>
     </tr>
   }
  </tbody>
</table>

@(fields: Iterable[core.Field])

<table class="table table-hover table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Datatype</th>
      <th>Required?</th>
      <th>Multi valued?</th>
      <th>Default</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
   @fields.map { field =>
     <tr>
       <td>@field.name</td>
       <td>@field.dataType.name @field.format.map { v => (@v.name) }</td>
       <td>@if(field.required && field.default.isEmpty) { Yes } else { No }</td>
       <td>@if(field.multiple) { Yes } else { No }</td>
       <td>@field.default.getOrElse("-")</td>
       <td>@field.description.getOrElse("")
           <p>
             @field.references.map { r => References: <a href="#">@r.label</a><br/> }
             @if(field.example.isEmpty) {
               @field.format.map { f =>
                 Example: @f.example<br/>
               }
             } else {
               Example: @field.example.get<br/>
             }

             @field.minimum.map { v => Minimum: @v<br/> }
             @field.maximum.map { v => Maximum: @v<br/> }
           </p>
       </td>
     </tr>
   }
  </tbody>
</table>

Move format example to the notes
Move format example to the notes
