This commit is contained in:
Tizian.Breuch
2025-07-29 15:06:27 +02:00
parent d4255b8c0d
commit 93a1f2411b
3 changed files with 25 additions and 9 deletions

View File

@@ -193,6 +193,20 @@ namespace Webshop.Api.SwaggerFilters
["defaultBillingAddressId"] = new OpenApiNull()
};
}
else if (type == typeof(UpdateCustomerDto)) // Dieses DTO verarbeitet jetzt alles
{
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"),
["currentPassword"] = new OpenApiString("SecureCustomerPass123!"),
["defaultShippingAddressId"] = new OpenApiNull(),
["defaultBillingAddressId"] = new OpenApiNull()
};
}
// --- Rabatte ---
else if (type == typeof(DiscountDto))
{