Skip to content

Commit c1c9def

Browse files
committed
Update snapshot outputs
1 parent 5c58287 commit c1c9def

7 files changed

+21
-7
lines changed

src/Http/Http.Extensions/test/ValidationsGenerator/snapshots/ValidationsGeneratorTests.CanValidateComplexTypes#ValidatableInfoResolver.g.verified.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public GeneratedValidatablePropertyInfo(
3838
Name = name;
3939
}
4040

41+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
4142
internal global::System.Type ContainingType { get; }
4243
internal string Name { get; }
4344

@@ -206,10 +207,11 @@ file static class GeneratedServiceCollectionExtensions
206207
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.ValidationsGenerator, Version=42.42.42.42, Culture=neutral, PublicKeyToken=adb9793829ddae60", "42.42.42.42")]
207208
file static class ValidationAttributeCache
208209
{
209-
private sealed record CacheKey(global::System.Type ContainingType, string PropertyName);
210+
private sealed record CacheKey([property: global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type ContainingType, string PropertyName);
210211
private static readonly global::System.Collections.Concurrent.ConcurrentDictionary<CacheKey, global::System.ComponentModel.DataAnnotations.ValidationAttribute[]> _cache = new();
211212

212213
public static global::System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes(
214+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
213215
global::System.Type containingType,
214216
string propertyName)
215217
{

src/Http/Http.Extensions/test/ValidationsGenerator/snapshots/ValidationsGeneratorTests.CanValidateIValidatableObject#ValidatableInfoResolver.g.verified.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public GeneratedValidatablePropertyInfo(
3838
Name = name;
3939
}
4040

41+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
4142
internal global::System.Type ContainingType { get; }
4243
internal string Name { get; }
4344

@@ -157,10 +158,11 @@ file static class GeneratedServiceCollectionExtensions
157158
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.ValidationsGenerator, Version=42.42.42.42, Culture=neutral, PublicKeyToken=adb9793829ddae60", "42.42.42.42")]
158159
file static class ValidationAttributeCache
159160
{
160-
private sealed record CacheKey(global::System.Type ContainingType, string PropertyName);
161+
private sealed record CacheKey([property: global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type ContainingType, string PropertyName);
161162
private static readonly global::System.Collections.Concurrent.ConcurrentDictionary<CacheKey, global::System.ComponentModel.DataAnnotations.ValidationAttribute[]> _cache = new();
162163

163164
public static global::System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes(
165+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
164166
global::System.Type containingType,
165167
string propertyName)
166168
{

src/Http/Http.Extensions/test/ValidationsGenerator/snapshots/ValidationsGeneratorTests.CanValidateParameters#ValidatableInfoResolver.g.verified.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public GeneratedValidatablePropertyInfo(
3838
Name = name;
3939
}
4040

41+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
4142
internal global::System.Type ContainingType { get; }
4243
internal string Name { get; }
4344

@@ -95,10 +96,11 @@ file static class GeneratedServiceCollectionExtensions
9596
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.ValidationsGenerator, Version=42.42.42.42, Culture=neutral, PublicKeyToken=adb9793829ddae60", "42.42.42.42")]
9697
file static class ValidationAttributeCache
9798
{
98-
private sealed record CacheKey(global::System.Type ContainingType, string PropertyName);
99+
private sealed record CacheKey([property: global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type ContainingType, string PropertyName);
99100
private static readonly global::System.Collections.Concurrent.ConcurrentDictionary<CacheKey, global::System.ComponentModel.DataAnnotations.ValidationAttribute[]> _cache = new();
100101

101102
public static global::System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes(
103+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
102104
global::System.Type containingType,
103105
string propertyName)
104106
{

src/Http/Http.Extensions/test/ValidationsGenerator/snapshots/ValidationsGeneratorTests.CanValidatePolymorphicTypes#ValidatableInfoResolver.g.verified.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public GeneratedValidatablePropertyInfo(
3838
Name = name;
3939
}
4040

41+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
4142
internal global::System.Type ContainingType { get; }
4243
internal string Name { get; }
4344

@@ -195,10 +196,11 @@ file static class GeneratedServiceCollectionExtensions
195196
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.ValidationsGenerator, Version=42.42.42.42, Culture=neutral, PublicKeyToken=adb9793829ddae60", "42.42.42.42")]
196197
file static class ValidationAttributeCache
197198
{
198-
private sealed record CacheKey(global::System.Type ContainingType, string PropertyName);
199+
private sealed record CacheKey([property: global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type ContainingType, string PropertyName);
199200
private static readonly global::System.Collections.Concurrent.ConcurrentDictionary<CacheKey, global::System.ComponentModel.DataAnnotations.ValidationAttribute[]> _cache = new();
200201

201202
public static global::System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes(
203+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
202204
global::System.Type containingType,
203205
string propertyName)
204206
{

src/Http/Http.Extensions/test/ValidationsGenerator/snapshots/ValidationsGeneratorTests.CanValidateRecursiveTypes#ValidatableInfoResolver.g.verified.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public GeneratedValidatablePropertyInfo(
3838
Name = name;
3939
}
4040

41+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
4142
internal global::System.Type ContainingType { get; }
4243
internal string Name { get; }
4344

@@ -120,10 +121,11 @@ file static class GeneratedServiceCollectionExtensions
120121
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.ValidationsGenerator, Version=42.42.42.42, Culture=neutral, PublicKeyToken=adb9793829ddae60", "42.42.42.42")]
121122
file static class ValidationAttributeCache
122123
{
123-
private sealed record CacheKey(global::System.Type ContainingType, string PropertyName);
124+
private sealed record CacheKey([property: global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type ContainingType, string PropertyName);
124125
private static readonly global::System.Collections.Concurrent.ConcurrentDictionary<CacheKey, global::System.ComponentModel.DataAnnotations.ValidationAttribute[]> _cache = new();
125126

126127
public static global::System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes(
128+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
127129
global::System.Type containingType,
128130
string propertyName)
129131
{

src/Http/Http.Extensions/test/ValidationsGenerator/snapshots/ValidationsGeneratorTests.CanValidateTypesWithAttribute#ValidatableInfoResolver.g.verified.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public GeneratedValidatablePropertyInfo(
3838
Name = name;
3939
}
4040

41+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
4142
internal global::System.Type ContainingType { get; }
4243
internal string Name { get; }
4344

@@ -200,10 +201,11 @@ file static class GeneratedServiceCollectionExtensions
200201
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.ValidationsGenerator, Version=42.42.42.42, Culture=neutral, PublicKeyToken=adb9793829ddae60", "42.42.42.42")]
201202
file static class ValidationAttributeCache
202203
{
203-
private sealed record CacheKey(global::System.Type ContainingType, string PropertyName);
204+
private sealed record CacheKey([property: global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type ContainingType, string PropertyName);
204205
private static readonly global::System.Collections.Concurrent.ConcurrentDictionary<CacheKey, global::System.ComponentModel.DataAnnotations.ValidationAttribute[]> _cache = new();
205206

206207
public static global::System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes(
208+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
207209
global::System.Type containingType,
208210
string propertyName)
209211
{

src/Http/Http.Extensions/test/ValidationsGenerator/snapshots/ValidationsGeneratorTests.DoesNotEmitForExemptTypes#ValidatableInfoResolver.g.verified.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public GeneratedValidatablePropertyInfo(
3838
Name = name;
3939
}
4040

41+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
4142
internal global::System.Type ContainingType { get; }
4243
internal string Name { get; }
4344

@@ -114,10 +115,11 @@ file static class GeneratedServiceCollectionExtensions
114115
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.AspNetCore.Http.ValidationsGenerator, Version=42.42.42.42, Culture=neutral, PublicKeyToken=adb9793829ddae60", "42.42.42.42")]
115116
file static class ValidationAttributeCache
116117
{
117-
private sealed record CacheKey(global::System.Type ContainingType, string PropertyName);
118+
private sealed record CacheKey([property: global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type ContainingType, string PropertyName);
118119
private static readonly global::System.Collections.Concurrent.ConcurrentDictionary<CacheKey, global::System.ComponentModel.DataAnnotations.ValidationAttribute[]> _cache = new();
119120

120121
public static global::System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes(
122+
[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
121123
global::System.Type containingType,
122124
string propertyName)
123125
{

0 commit comments

Comments
 (0)