Offerings: beschrijving en prijsnotitie optioneel (API, admin, index-markers, OpenAPI)
Ontbrekend/null/leeg wordt als lege string opgeslagen en teruggegeven; JSON-LD laat description weg en de HTML-markers renderen geen lege <p>. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,9 +4,10 @@ namespace SlpModularCms.Modules.Offerings.Models;
|
||||
|
||||
public record UpdateOfferingRequest(
|
||||
[Required, MaxLength(100)] string Title,
|
||||
[Required(AllowEmptyStrings = true), MaxLength(500)] string Description,
|
||||
// Optional: missing, null and "" are all stored as "" (the websites that do not use them leave them out).
|
||||
[MaxLength(500)] string? Description,
|
||||
[Required, MaxLength(50)] string Price,
|
||||
[Required(AllowEmptyStrings = true), MaxLength(100)] string PriceNote,
|
||||
[MaxLength(100)] string? PriceNote,
|
||||
[Required, FeaturesValidation] List<string> Features,
|
||||
[Required(AllowEmptyStrings = true), MaxLength(50)] string CtaLabel,
|
||||
bool Featured = false,
|
||||
|
||||
Reference in New Issue
Block a user