Add UIHintDescriptor model to API client

This commit is contained in:
Sipke Schoorstra 2023-07-04 14:29:05 +02:00
parent 3592c9c052
commit 5b39041494
2 changed files with 14 additions and 0 deletions

View file

@ -34,4 +34,9 @@ public abstract class ArgumentDefinition
/// The category to which this input belongs.
/// </summary>
public string Category { get; set; } = default!;
/// <summary>
/// The type name of the variable, including the array indicator.
/// </summary>
public string GetTypeDisplayName() => IsArray ? $"{Type}[]" : Type;
}

View file

@ -0,0 +1,9 @@
namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Models;
/// <summary>
/// Represents a UI hint.
/// </summary>
/// <param name="Name">The name of the UI hint.</param>
/// <param name="DisplayName">The display name of the UI hint.</param>
/// <param name="Description">The description of the UI hint.</param>
public record UIHintDescriptor(string Name, string DisplayName, string? Description);