Skip to content

Commit 0e15b58

Browse files
authored
Add Experimental attribute to FilterPath (#8802)
1 parent fa9d94e commit 0e15b58

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<AssemblyOriginatorKeyFile>$(SolutionRoot)\build\keys\keypair.snk</AssemblyOriginatorKeyFile>
66
</PropertyGroup>
77
<PropertyGroup Condition="$(IsPackable) == True">
8-
<NoWarn>1591,1572,1571,1573,1587,1570,NU5048</NoWarn>
8+
<NoWarn>$(NoWarn), 1591,1572,1571,1573,1587,1570,NU5048</NoWarn>
99
<CheckEolTargetFramework>false</CheckEolTargetFramework>
1010
<Prefer32Bit>false</Prefer32Bit>
1111
<DebugSymbols>true</DebugSymbols>

src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
<AllowMissingPrunePackageData>true</AllowMissingPrunePackageData>
2323
</PropertyGroup>
2424

25-
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) or
26-
$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0')) or
27-
$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">
25+
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
2826
<IsAotCompatible>true</IsAotCompatible>
2927
</PropertyGroup>
3028

src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System;
6+
using System.Diagnostics.CodeAnalysis;
67
using System.Text.Json.Serialization;
78
using Elastic.Transport;
89

@@ -28,11 +29,17 @@ public bool? ErrorTrace
2829
/// <summary>
2930
/// A list of filters used to reduce the response.
3031
/// <para>
31-
/// Use of response filtering can result in a response from Elasticsearch
32-
/// that cannot be correctly deserialized to the respective response type for the request.
33-
/// In such situations, use the low level client to issue the request and handle response deserialization.
32+
/// Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized
33+
/// to the respective response type for the request. In such situations, use the low level client to issue the
34+
/// request and handle response deserialization.
3435
/// </para>
3536
/// </summary>
37+
[Experimental("ESCEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
38+
#if NET10_0_OR_GREATER
39+
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized " +
40+
"to the respective response type for the request."
41+
#endif
42+
)]
3643
[JsonIgnore]
3744
public string[]? FilterPath
3845
{

0 commit comments

Comments
 (0)