{{/*

  Render the parameters of a given type, given:

  * `parameters`: OpenAPI data specifying the parameters
  * `type`: the type of parameters to render: "header, ""path", "query"
  * `caption`: caption to use for the table

  This template renders a single table containing parameters of the given type.

*/}}

{{ $parameters := .parameters }}
{{ $type := .type }}
{{ $caption := .caption }}

{{ $parameters_of_type := where $parameters "in" $type }}

{{ with $parameters_of_type }}

    {{/* build a dict m