diff --git a/src/libs/Picsart/Generated/Picsart.AllOf.2.g.cs b/src/libs/Picsart/Generated/Picsart.AllOf.2.g.cs
index 12eb59c..6f02927 100644
--- a/src/libs/Picsart/Generated/Picsart.AllOf.2.g.cs
+++ b/src/libs/Picsart/Generated/Picsart.AllOf.2.g.cs
@@ -6,7 +6,7 @@ namespace Picsart
///
///
///
- public readonly partial struct AllOf : global::System.IEquatable>
+ public readonly partial struct AllOf<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2> : global::System.IEquatable>
{
///
///
@@ -105,9 +105,9 @@ Value1 as object
Value2?.ToString()
;
- private static bool RequiresValue() => RequirementCache.Value;
+ private static bool RequiresValue<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] TValue>() => RequirementCache.Value;
- private static bool DetermineRequiresValue(global::System.Type type)
+ private static bool DetermineRequiresValue([global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type type)
{
if (global::System.Nullable.GetUnderlyingType(type) != null)
{
@@ -138,7 +138,7 @@ private static bool DetermineRequiresValue(global::System.Type type)
return false;
}
- private static class RequirementCache
+ private static class RequirementCache<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] TValue>
{
public static readonly bool Value = DetermineRequiresValue(typeof(TValue));
}
diff --git a/src/libs/Picsart/Generated/Picsart.AllOf.3.g.cs b/src/libs/Picsart/Generated/Picsart.AllOf.3.g.cs
index 60f3385..33b1c8c 100644
--- a/src/libs/Picsart/Generated/Picsart.AllOf.3.g.cs
+++ b/src/libs/Picsart/Generated/Picsart.AllOf.3.g.cs
@@ -6,7 +6,7 @@ namespace Picsart
///
///
///
- public readonly partial struct AllOf : global::System.IEquatable>
+ public readonly partial struct AllOf<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T3> : global::System.IEquatable>
{
///
///
@@ -144,9 +144,9 @@ Value1 as object
Value3?.ToString()
;
- private static bool RequiresValue() => RequirementCache.Value;
+ private static bool RequiresValue<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] TValue>() => RequirementCache.Value;
- private static bool DetermineRequiresValue(global::System.Type type)
+ private static bool DetermineRequiresValue([global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type type)
{
if (global::System.Nullable.GetUnderlyingType(type) != null)
{
@@ -177,7 +177,7 @@ private static bool DetermineRequiresValue(global::System.Type type)
return false;
}
- private static class RequirementCache
+ private static class RequirementCache<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] TValue>
{
public static readonly bool Value = DetermineRequiresValue(typeof(TValue));
}
diff --git a/src/libs/Picsart/Generated/Picsart.JsonConverters.AllOf2.g.cs b/src/libs/Picsart/Generated/Picsart.JsonConverters.AllOf2.g.cs
index 1ad7041..5b705d3 100644
--- a/src/libs/Picsart/Generated/Picsart.JsonConverters.AllOf2.g.cs
+++ b/src/libs/Picsart/Generated/Picsart.JsonConverters.AllOf2.g.cs
@@ -3,7 +3,7 @@
namespace Picsart.JsonConverters
{
///
- public class AllOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter>
+ public class AllOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2> : global::System.Text.Json.Serialization.JsonConverter>
{
///
public override global::Picsart.AllOf Read(
diff --git a/src/libs/Picsart/Generated/Picsart.JsonConverters.AllOf3.g.cs b/src/libs/Picsart/Generated/Picsart.JsonConverters.AllOf3.g.cs
index 49a2242..5c14804 100644
--- a/src/libs/Picsart/Generated/Picsart.JsonConverters.AllOf3.g.cs
+++ b/src/libs/Picsart/Generated/Picsart.JsonConverters.AllOf3.g.cs
@@ -3,7 +3,7 @@
namespace Picsart.JsonConverters
{
///
- public class AllOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter>
+ public class AllOfJsonConverter<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T3> : global::System.Text.Json.Serialization.JsonConverter>
{
///
public override global::Picsart.AllOf Read(
diff --git a/src/libs/Picsart/Generated/Picsart.Polyfills.g.cs b/src/libs/Picsart/Generated/Picsart.Polyfills.g.cs
index 5613079..86f03c4 100644
--- a/src/libs/Picsart/Generated/Picsart.Polyfills.g.cs
+++ b/src/libs/Picsart/Generated/Picsart.Polyfills.g.cs
@@ -53,6 +53,10 @@ public static partial class AutoSdkPolyfills
///
/// Creates a JSON request content instance.
///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
public static global::System.Net.Http.HttpContent CreateJsonContent(
T inputValue,
string mediaType,
@@ -124,6 +128,10 @@ public static partial class AutoSdkPolyfills
///
/// Reads JSON content into the specified type using serializer options.
///
+#if NET8_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
+ [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
+#endif
public static async global::System.Threading.Tasks.Task ReadFromJsonAsync(
this global::System.Net.Http.HttpContent content,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions,