File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,5 +168,8 @@ public override string ToString()
168168[ JsonSerializable ( typeof ( Dictionary < string , short > ) ) ]
169169[ JsonSerializable ( typeof ( Dictionary < string , ushort > ) ) ]
170170[ JsonSerializable ( typeof ( Dictionary < string , string > ) ) ]
171+ #pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant
172+ // This is not part of the public API, so we can ignore this warning
171173[ JsonSourceGenerationOptions ( Converters = [ typeof ( ResponseValueJsonConverter ) ] ) ]
174+ #pragma warning restore CS3016 // Arrays as attribute arguments is not CLS-compliant
172175internal partial class CommandJsonSerializerContext : JsonSerializerContext ;
Original file line number Diff line number Diff line change @@ -204,5 +204,8 @@ public override string ToString()
204204}
205205
206206[ JsonSerializable ( typeof ( object ) ) ]
207+ #pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant
208+ // This is not part of the public API, so we can ignore this warning
207209[ JsonSourceGenerationOptions ( Converters = [ typeof ( ResponseValueJsonConverter ) ] ) ] // we still need it to make `Object` as `Dictionary`
210+ #pragma warning restore CS3016 // Arrays as attribute arguments is not CLS-compliant
208211internal sealed partial class ResponseJsonSerializerContext : JsonSerializerContext ;
You can’t perform that action at this time.
0 commit comments