diff --git a/src/Nest/Aggregations/Pipeline/BucketsPath.cs b/src/Nest/Aggregations/Pipeline/BucketsPath.cs index a9b7d1a9c00..5316760f346 100644 --- a/src/Nest/Aggregations/Pipeline/BucketsPath.cs +++ b/src/Nest/Aggregations/Pipeline/BucketsPath.cs @@ -10,7 +10,7 @@ public interface IBucketsPath { } public class SingleBucketsPath : IBucketsPath { - internal string BucketsPath { get; private set; } + public string BucketsPath { get; private set; } public SingleBucketsPath(string bucketsPath) { @@ -45,7 +45,7 @@ public MultiBucketsPathDescriptor() : base(new MultiBucketsPath()) { } public class BucketsPathJsonConverter : JsonConverter { - public override bool CanConvert(Type objectType) => + public override bool CanConvert(Type objectType) => typeof(SingleBucketsPath) == objectType || typeof(MultiBucketsPath) == objectType; public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)