Files
Needlework.Net/Needlework.Net/ViewModels/Pages/Endpoints/PropertyEnumViewModel.cs
estrogen elf 7b831b6c1f feat: fubar
2025-06-12 19:26:31 -05:00

18 lines
442 B
C#

using Microsoft.OpenApi.Any;
using System.Collections.Generic;
using System.Linq;
namespace Needlework.Net.ViewModels.Pages.Endpoints;
public class PropertyEnumViewModel
{
public PropertyEnumViewModel(IList<IOpenApiAny> enumValue)
{
Values = $"[{string.Join(", ", enumValue.Select(x => $"\"{((OpenApiString)x).Value}\"").ToList())}]";
}
public string Type { get; } = "Enum";
public string Values { get; }
}