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 @@ -46,6 +46,18 @@ public sealed partial class RichTextBackground
[global::System.Text.Json.Serialization.JsonPropertyName("wrap")]
public bool? Wrap { get; set; }

/// <summary>
/// Inner padding in pixels between the wrap pill edge and the rendered text. Only takes<br/>
/// effect when `wrap: true`. When omitted, the renderer applies a sensible default<br/>
/// proportional to the font size (approximately 12% of the active page font size on<br/>
/// rich-caption assets). Set to 0 for a pill that hugs the text exactly. Available on<br/>
/// rich-text and rich-caption assets only.<br/>
/// Example: 12
/// </summary>
/// <example>12</example>
[global::System.Text.Json.Serialization.JsonPropertyName("padding")]
public int? Padding { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -77,19 +89,29 @@ public sealed partial class RichTextBackground
/// Default Value: false<br/>
/// Example: true
/// </param>
/// <param name="padding">
/// Inner padding in pixels between the wrap pill edge and the rendered text. Only takes<br/>
/// effect when `wrap: true`. When omitted, the renderer applies a sensible default<br/>
/// proportional to the font size (approximately 12% of the active page font size on<br/>
/// rich-caption assets). Set to 0 for a pill that hugs the text exactly. Available on<br/>
/// rich-text and rich-caption assets only.<br/>
/// Example: 12
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public RichTextBackground(
string? color,
double? opacity,
double? borderRadius,
bool? wrap)
bool? wrap,
int? padding)
{
this.Color = color;
this.Opacity = opacity;
this.BorderRadius = borderRadius;
this.Wrap = wrap;
this.Padding = padding;
}

/// <summary>
Expand Down
7 changes: 7 additions & 0 deletions src/libs/Shotstack/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2957,6 +2957,13 @@
"type": "boolean",
"default": false,
"example": true
},
"padding": {
"description": "Inner padding in pixels between the wrap pill edge and the rendered text. Only takes\neffect when `wrap: true`. When omitted, the renderer applies a sensible default\nproportional to the font size (approximately 12% of the active page font size on\nrich-caption assets). Set to 0 for a pill that hugs the text exactly. Available on\nrich-text and rich-caption assets only.\n",
"type": "integer",
"minimum": 0,
"maximum": 200,
"example": 12
}
},
"additionalProperties": false,
Expand Down