email raus

This commit is contained in:
Tizian.Breuch
2025-07-29 15:50:31 +02:00
parent 0068ee106b
commit 1f809d5b19
3 changed files with 8 additions and 24 deletions

View File

@@ -201,14 +201,14 @@ namespace Webshop.Api.SwaggerFilters
["defaultBillingAddressId"] = new OpenApiNull()
};
}
else if (type == typeof(UpdateCustomerDto)) // Dieses DTO verarbeitet jetzt alles
else if (type == typeof(UpdateCustomerDto))
{
schema.Example = new OpenApiObject
{
["firstName"] = new OpenApiString("Max"),
["lastName"] = new OpenApiString("Mustermann"),
["phoneNumber"] = new OpenApiString("+491701234567"),
["email"] = new OpenApiString($"max.mustermann.neu.{uniqueId}@example.com"),
// ["email"] = new OpenApiString($"max.mustermann.neu.{uniqueId}@example.com"), // << ENTFERNT >>
["currentPassword"] = new OpenApiString("SecureCustomerPass123!"),
["defaultShippingAddressId"] = new OpenApiNull(),
["defaultBillingAddressId"] = new OpenApiNull()