Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class VectorizeImageRequestJsonConverter : global::System.Text.Json.Seria
if (__jsonProps.Contains("return_gradients")) __score1++;
if (__jsonProps.Contains("shape_stacking")) __score1++;
if (__jsonProps.Contains("small_shape_filter")) __score1++;
if (__jsonProps.Contains("strict_color_palette")) __score1++;
if (__jsonProps.Contains("svg_compression")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
Expand Down
2 changes: 2 additions & 0 deletions src/libs/Recraft/Generated/Recraft.JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ namespace Recraft
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Recraft.VariateImageRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Recraft.VectorizeImageRequest), TypeInfoPropertyName = "VectorizeImageRequest2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Recraft.VectorizeImageRequestVariant2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::System.Collections.Generic.IList<int>>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(object))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<double>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<byte[]>))]
Expand All @@ -176,6 +177,7 @@ namespace Recraft
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Recraft.ColorMapping>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Recraft.ImageColor>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::System.Collections.Generic.List<double>>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::System.Collections.Generic.List<int>>))]
public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,11 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public object? Type73 { get; set; }
public global::System.Collections.Generic.IList<global::System.Collections.Generic.IList<int>>? Type73 { get; set; }
/// <summary>
///
/// </summary>
public object? Type74 { get; set; }

/// <summary>
///
Expand Down Expand Up @@ -370,5 +374,9 @@ public sealed partial class JsonSerializerContextTypes
///
/// </summary>
public global::System.Collections.Generic.List<global::System.Collections.Generic.List<double>>? ListType11 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.List<global::System.Collections.Generic.List<int>>? ListType12 { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public sealed partial class VectorizeImageRequestVariant2
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Recraft.JsonConverters.SmallShapeFilterJsonConverter))]
public global::Recraft.SmallShapeFilter? SmallShapeFilter { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("strict_color_palette")]
public global::System.Collections.Generic.IList<global::System.Collections.Generic.IList<int>>? StrictColorPalette { get; set; }

/// <summary>
///
/// </summary>
Expand All @@ -71,6 +77,7 @@ public sealed partial class VectorizeImageRequestVariant2
/// <param name="returnGradients"></param>
/// <param name="shapeStacking"></param>
/// <param name="smallShapeFilter"></param>
/// <param name="strictColorPalette"></param>
/// <param name="svgCompression"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand All @@ -82,6 +89,7 @@ public VectorizeImageRequestVariant2(
global::Recraft.ReturnGradients? returnGradients,
global::Recraft.ShapeStacking? shapeStacking,
global::Recraft.SmallShapeFilter? smallShapeFilter,
global::System.Collections.Generic.IList<global::System.Collections.Generic.IList<int>>? strictColorPalette,
global::Recraft.SvgCompression? svgCompression)
{
this.ColorReduction = colorReduction;
Expand All @@ -90,6 +98,7 @@ public VectorizeImageRequestVariant2(
this.ReturnGradients = returnGradients;
this.ShapeStacking = shapeStacking;
this.SmallShapeFilter = smallShapeFilter;
this.StrictColorPalette = strictColorPalette;
this.SvgCompression = svgCompression;
}

Expand Down
2 changes: 1 addition & 1 deletion src/libs/Recraft/openapi.yaml

Large diffs are not rendered by default.