public static JsonObject FormatReferences(this ContentData data, Schema schema, IFieldPartitioning partitioning, string separator = ", ") { Guard.NotNull(schema, nameof(schema)); Guard.NotNull(partitioning, nameof(partitioning)); var result = JsonValue.Object(); foreach (var partitionKey in partitioning.AllKeys) { result[partitionKey] = JsonValue.Create(data.FormatReferenceFields(schema, partitionKey, separator)); } return(result); }