Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.databricks.sdk.support.QueryParam;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.protobuf.FieldMask;
import java.lang.reflect.Field;
import java.util.*;

Expand Down Expand Up @@ -118,6 +119,8 @@ private static Map<String, Object> flattenObject(Object o, Boolean onlyAnnotated
|| Iterable.class.isAssignableFrom(type)
|| type.isEnum()) {
result.put(name, value);
} else if (FieldMask.class.isAssignableFrom(type)) {
result.put(name, String.join(",", ((FieldMask) value).getPathsList()));
} else {
// recursively flatten the object
Map<String, Object> flattened = flattenObject(value, false);
Expand Down
Loading