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 @@ -9,8 +9,12 @@ namespace Ideogram
public sealed partial class ColorPaletteWithMembers
{
/// <summary>
/// A list of ColorPaletteMembers that define the color palette.
/// A list of ColorPaletteMembers that define the color palette. Each color palette member<br/>
/// consists of a required color hex and an optional weight between 0.05 and 1.0 (inclusive).<br/>
/// It is recommended that these weights descend from highest to lowest for the color hexes provided.<br/>
/// Example: [, , , , ]
/// </summary>
/// <example>[, , , , ]</example>
[global::System.Text.Json.Serialization.JsonPropertyName("members")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::Ideogram.ColorPaletteMember> Members { get; set; }
Expand All @@ -25,7 +29,10 @@ public sealed partial class ColorPaletteWithMembers
/// Initializes a new instance of the <see cref="ColorPaletteWithMembers" /> class.
/// </summary>
/// <param name="members">
/// A list of ColorPaletteMembers that define the color palette.
/// A list of ColorPaletteMembers that define the color palette. Each color palette member<br/>
/// consists of a required color hex and an optional weight between 0.05 and 1.0 (inclusive).<br/>
/// It is recommended that these weights descend from highest to lowest for the color hexes provided.<br/>
/// Example: [, , , , ]
/// </param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public ColorPaletteWithMembers(
Expand Down
36 changes: 34 additions & 2 deletions src/libs/Ideogram/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,23 @@ components:
type: array
items:
$ref: '#/components/schemas/ColorPaletteMember'
description: A list of ColorPaletteMembers that define the color palette.
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"
example:
- ColorPaletteMember:
color_hex: '#b470b3'
color_weight: 0.49
- ColorPaletteMember:
color_hex: '#7a79e3'
color_weight: 0.16
- ColorPaletteMember:
color_hex: '#a26563'
color_weight: 0.1
- ColorPaletteMember:
color_hex: '#5c7d76'
color_weight: 0.07
- ColorPaletteMember:
color_hex: '#642a9c'
color_weight: 0.05
description: A color palette represented only via its members
ColorPaletteMembers:
title: ColorPaletteMembers
Expand All @@ -1280,7 +1296,23 @@ components:
type: array
items:
$ref: '#/components/schemas/ColorPaletteMember'
description: A list of ColorPaletteMembers that define the color palette.
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"
example:
- ColorPaletteMember:
color_hex: '#b470b3'
color_weight: 0.49
- ColorPaletteMember:
color_hex: '#7a79e3'
color_weight: 0.16
- ColorPaletteMember:
color_hex: '#a26563'
color_weight: 0.1
- ColorPaletteMember:
color_hex: '#5c7d76'
color_weight: 0.07
- ColorPaletteMember:
color_hex: '#642a9c'
color_weight: 0.05
ColorPaletteMember:
title: ColorPaletteMember
required:
Expand Down
Loading