// Add an editor row for each parameter in the method.
int row = 0;
for (Map.Entry<String, Schema> entry : sortedParams.entrySet()) {
String paramName = entry.getKey();
Schema param = entry.getValue();
addEditorRow(paramName, param, row++);
}
// Add a row for the fields parameter if there is a response object
Schema responseSchema = service.responseSchema(method);
if (responseSchema != null) {
addEmbeddedFieldsRow(service, responseSchema, row++);
}
Schema requestSchema = service.requestSchema(method);
bodyForm.setContent(service, method, requestSchema, bodyText);
// (Maybe) add row for request body editor.
boolean canHaveRequestBody = requestSchema != null;
String requestParameterText = (method.getHttpMethod() == HttpMethod.PATCH) ? "Patch body"