Skip to content

Commit d734d4a

Browse files
Merge pull request #41 from tryAGI/bot/update-openapi_202411212118
feat:@coderabbitai
2 parents 4da4cdd + 9f76491 commit d734d4a

File tree

2 files changed

+43
-4
lines changed

2 files changed

+43
-4
lines changed

src/libs/Ideogram/Generated/Ideogram.Models.ColorPaletteWithMembers.g.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ namespace Ideogram
99
public sealed partial class ColorPaletteWithMembers
1010
{
1111
/// <summary>
12-
/// A list of ColorPaletteMembers that define the color palette.
12+
/// A list of ColorPaletteMembers that define the color palette. Each color palette member<br/>
13+
/// consists of a required color hex and an optional weight between 0.05 and 1.0 (inclusive).<br/>
14+
/// It is recommended that these weights descend from highest to lowest for the color hexes provided.<br/>
15+
/// Example: [, , , , ]
1316
/// </summary>
17+
/// <example>[, , , , ]</example>
1418
[global::System.Text.Json.Serialization.JsonPropertyName("members")]
1519
[global::System.Text.Json.Serialization.JsonRequired]
1620
public required global::System.Collections.Generic.IList<global::Ideogram.ColorPaletteMember> Members { get; set; }
@@ -25,7 +29,10 @@ public sealed partial class ColorPaletteWithMembers
2529
/// Initializes a new instance of the <see cref="ColorPaletteWithMembers" /> class.
2630
/// </summary>
2731
/// <param name="members">
28-
/// A list of ColorPaletteMembers that define the color palette.
32+
/// A list of ColorPaletteMembers that define the color palette. Each color palette member<br/>
33+
/// consists of a required color hex and an optional weight between 0.05 and 1.0 (inclusive).<br/>
34+
/// It is recommended that these weights descend from highest to lowest for the color hexes provided.<br/>
35+
/// Example: [, , , , ]
2936
/// </param>
3037
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
3138
public ColorPaletteWithMembers(

src/libs/Ideogram/openapi.yaml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,23 @@ components:
12711271
type: array
12721272
items:
12731273
$ref: '#/components/schemas/ColorPaletteMember'
1274-
description: A list of ColorPaletteMembers that define the color palette.
1274+
description: "A list of ColorPaletteMembers that define the color palette. Each color palette member\nconsists of a required color hex and an optional weight between 0.05 and 1.0 (inclusive).\nIt is recommended that these weights descend from highest to lowest for the color hexes provided.\n"
1275+
example:
1276+
- ColorPaletteMember:
1277+
color_hex: '#b470b3'
1278+
color_weight: 0.49
1279+
- ColorPaletteMember:
1280+
color_hex: '#7a79e3'
1281+
color_weight: 0.16
1282+
- ColorPaletteMember:
1283+
color_hex: '#a26563'
1284+
color_weight: 0.1
1285+
- ColorPaletteMember:
1286+
color_hex: '#5c7d76'
1287+
color_weight: 0.07
1288+
- ColorPaletteMember:
1289+
color_hex: '#642a9c'
1290+
color_weight: 0.05
12751291
description: A color palette represented only via its members
12761292
ColorPaletteMembers:
12771293
title: ColorPaletteMembers
@@ -1280,7 +1296,23 @@ components:
12801296
type: array
12811297
items:
12821298
$ref: '#/components/schemas/ColorPaletteMember'
1283-
description: A list of ColorPaletteMembers that define the color palette.
1299+
description: "A list of ColorPaletteMembers that define the color palette. Each color palette member\nconsists of a required color hex and an optional weight between 0.05 and 1.0 (inclusive).\nIt is recommended that these weights descend from highest to lowest for the color hexes provided.\n"
1300+
example:
1301+
- ColorPaletteMember:
1302+
color_hex: '#b470b3'
1303+
color_weight: 0.49
1304+
- ColorPaletteMember:
1305+
color_hex: '#7a79e3'
1306+
color_weight: 0.16
1307+
- ColorPaletteMember:
1308+
color_hex: '#a26563'
1309+
color_weight: 0.1
1310+
- ColorPaletteMember:
1311+
color_hex: '#5c7d76'
1312+
color_weight: 0.07
1313+
- ColorPaletteMember:
1314+
color_hex: '#642a9c'
1315+
color_weight: 0.05
12841316
ColorPaletteMember:
12851317
title: ColorPaletteMember
12861318
required:

0 commit comments

Comments
 (0)