{{ $type := .Get 0 }} {{ $options := .Get 1 }} {{ $mode := .Get 2 }} {{ if eq $options "nodejs" }} {{ $options = "javascript,typescript" }} {{ end }} {{ if not $type }} {{ errorf "%s Missing required parameter 'type'." .Path }} {{ end }} {{ if not $options }} {{ errorf "%s Missing required parameter 'options'." .Path }} {{ end }}