From 65435d0279d964286c8e768a53df29f20b759172 Mon Sep 17 00:00:00 2001 From: Jonathan Adamit Date: Wed, 6 Apr 2016 10:26:31 +0300 Subject: [PATCH] Would like to be able to access the buckets path defined on SingleBucketsPath. MultiBucketsPath already exposes this via dictionary. --- src/Nest/Aggregations/Pipeline/BucketsPath.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)