Offerings: lege description/priceNote/ctaLabel toegestaan; ASF-pakketten-seed gevuld; ASF-referentietest gerepareerd
De hosttest op GetReferencedAssemblies faalde in CI (module wordt runtime gevonden, geen compile-referentie); Offerings-aanwezigheid via capabilities. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,10 +40,14 @@ if (-not $packages -or $packages.Count -eq 0) { throw "No packages in $PackagesF
|
||||
|
||||
# Refuse unfinished templates: no guessed copy ends up in a CMS.
|
||||
foreach ($p in $packages) {
|
||||
foreach ($field in 'slug', 'title', 'description', 'price', 'priceNote', 'ctaLabel') {
|
||||
foreach ($field in 'slug', 'title', 'price') {
|
||||
$v = $p.$field
|
||||
if ([string]::IsNullOrWhiteSpace($v) -or $v -like 'TODO*') { throw "Package '$($p.slug)': '$field' is empty or still TODO." }
|
||||
}
|
||||
# description, priceNote and ctaLabel may be empty (the API accepts empty strings), but never TODO.
|
||||
foreach ($field in 'description', 'priceNote', 'ctaLabel') {
|
||||
if ("$($p.$field)" -like 'TODO*') { throw "Package '$($p.slug)': '$field' is still TODO." }
|
||||
}
|
||||
if (-not $p.features -or $p.features.Count -eq 0 -or ($p.features | Where-Object { $_ -like 'TODO*' })) {
|
||||
throw "Package '$($p.slug)': 'features' is empty or still TODO."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user