{{!--
    Renders the security definitions of the Rest-service.
    @param {Security[]} security TODO
    @api public
--}}
{{#if security}}
    <section class="sw-request-security">
        <table class="table">
            <thead>
            <tr>
                <th class="sw-request-security-schema"></th>
                <th class="sw-request-security-scopes"></th>
            </tr>
            </thead>
            <tbody>
            {{#each security}}
                {{#each this}}
                    <tr>
                        <td><a href="#security-definition-{{@key}}">{{@key}}</a></td>
                        <td>
                            {{#each this}}
                                {{#unless @first}}, {{/unless}}{{this}}
                            {{/each}}
                        </td>
                    </tr>
                {{/each}}
            {{/each}}
            </tbody>
        </table>
    </section>
{{/if}}
