<%- assert_locals field, comma -%> <%- key, value = field -%> <%- if value.is_a? Hash -%> <%= key %> = { <%- value.each_with_index do |nested_field, index| -%> <%- nested_comma = index != value.count - 1 -%> <%= indent render(partial: "service/client/method/docs/request_field/hash", locals: { field: nested_field, comma: nested_comma }), " " %> <%- end -%> }<%= "," if comma %> <%- else -%> <%- if value.comment -%> <%= indent value.comment, "# " %> <%- end -%> <%- if value.value_is_file && !value.input_parameter -%> <%= key %>: File.read(<%= value.value %>)<%= "," if comma %> <%- else -%> <%= key %>: <%= value.input_parameter || value.value %><%= "," if comma %> <%- end -%> <%- end -%>