elsa-core/src/modules/Elsa.Connections.Models/ConnectionInputModel.cs
Sipke Schoorstra 78c6df152e
Refactor and clean up Connections API and Core components
Removed unused code, optimized imports, and updated method signatures for better null-safety and consistency. Consolidated redundant logic, improved error handling in endpoints, and applied modern syntax and practices across the Connections module.
2025-02-23 14:07:32 +01:00

27 lines
742 B
C#

using System.ComponentModel.DataAnnotations;
using System.Text.Json.Nodes;
namespace Elsa.Connections.Models;
public class ConnectionInputModel
{
/// <summary>
/// The Name of the Connection
/// </summary>
[Required] public string Name { get; set; } = null!;
/// <summary>
/// The Description of the Connection
/// </summary>
public string? Description { get; set; }
/// <summary>
/// The Configuration of the Connection in a Json Format
/// </summary>
public JsonObject ConnectionConfiguration { get; set; } = new();
/// <summary>
/// The Connection Type Name
/// </summary>
[Required] public string ConnectionType { get; set; } = null!;
}