Added manual validation steps

This commit is contained in:
Thorsten Sommer 2024-12-29 12:14:14 +01:00
parent e998e9740f
commit e932c21709
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -622,10 +622,17 @@ public partial class AssistantERI : AssistantBaseCore
if (!this.inputIsValid)
return;
var ediSpecification = await this.selectedERIVersion.ReadSpecification(this.HttpClient);
if (string.IsNullOrWhiteSpace(ediSpecification))
if(this.retrievalProcesses.Count == 0)
{
// TODO: Show an error message
this.AddInputIssue("Please describe at least one retrieval process.");
return;
}
var specification = await this.selectedERIVersion.ReadSpecification(this.HttpClient);
if (string.IsNullOrWhiteSpace(specification))
{
this.AddInputIssue("The ERI specification could not be loaded. Please try again later.");
return;
}
}
}