Using the Api Explorer (/ui), I am experiencing an issue where the references exposed via the DTO are not selectable in the UI.
public class Tenant : AuditBase
{
[AutoId]
public Guid Id { get; set; }
[Required]
public string Name { get; set; } = default!;
[Ref(Model = nameof(Organisation), RefId = nameof(OrganisationId), RefLabel = nameof(Organisation.Name))]
[References(typeof(Organisation))]
public Guid? OrganisationId { get; set; }
[Reference]
public Organisation Organisation { get; set; }
}
[Route("/tenants", "POST")]
[ValidateHasRole(Roles.HostAdmin)]
[AutoApply(Behavior.AuditCreate)]
public class TenantCreate : ICreateDb<Tenant>, IReturn<IdResponse>
{
public string Name { get; set; }
public Guid? OrganisationId { get; set; }
}
The TenantCreate DTO renders with an Organisation Id which is clickable to select an organisation, but selecting it does nothing.
Video uploaded here: Watch Screen Recording 2024-03-12 at 11.20.31 AM | Streamable