13 references to AddValidationError
Aspire.Hosting (5)
InteractionService.cs (5)
258
context.
AddValidationError
(input, "Value is required.");
271
context.
AddValidationError
(input, $"Value length exceeds {maxLength} characters.");
277
context.
AddValidationError
(input, "Value must be one of the provided options.");
283
context.
AddValidationError
(input, "Value must be a valid boolean.");
289
context.
AddValidationError
(input, "Value must be a valid number.");
Aspire.Hosting.Azure (2)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (2)
116
validationContext.
AddValidationError
(subscriptionInput, "Subscription ID must be a valid GUID.");
122
validationContext.
AddValidationError
(resourceGroupInput, "Resource group name must be a valid Azure resource group name.");
Aspire.Hosting.Tests (1)
InteractionServiceTests.cs (1)
187
context.
AddValidationError
(input, "Invalid value");
Publishers.AppHost (3)
DistributedApplicationBuilderExtensions.cs (3)
71
validationContext.
AddValidationError
(appNameInput, "Application name must be at least 3 characters long");
79
validationContext.
AddValidationError
(versionInput, "Version must be in format x.y.z (e.g., 1.0.0)");
107
validationContext.
AddValidationError
(validationContext.Inputs[0], "Wrong");
Stress.AppHost (2)
InteractionCommands.cs (2)
81
context.
AddValidationError
(input, "Name must be at least 3 characters long.");
149
context.
AddValidationError
(numberOfPeopleInput, "Number of people can't be greater than 4 when eating steak.");