Skip to content

Commit

Permalink
Removing AOT attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerBarreto committed Jan 10, 2025
1 parent 090dfa5 commit 07cb43f
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text.Json;
using System.Text.Json.Nodes;
Expand Down Expand Up @@ -297,8 +296,6 @@ private static JsonElement CreateSchema(
return AIJsonUtilities.CreateJsonSchema(type, description, serializerOptions: options, inferenceOptions: configuration);
}

[RequiresUnreferencedCode("Uses JsonStringEnumConverter and DefaultJsonTypeInfoResolver classes, making it incompatible with AOT scenarios.")]
[RequiresDynamicCode("Uses JsonStringEnumConverter and DefaultJsonTypeInfoResolver classes, making it incompatible with AOT scenarios.")]
private static JsonSerializerOptions GetDefaultOptions()
{
if (s_options is null)
Expand Down

0 comments on commit 07cb43f

Please sign in to comment.