We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d45dc53 commit c769fa2Copy full SHA for c769fa2
index.ts
@@ -100,6 +100,12 @@ for (const [key, data] of yamlEntries('feature-group-definitions')) {
100
data.status.baseline_high_date = String(highDate);
101
}
102
103
+ // TODO: remove this when description is required by schema.
104
+ // Part of https://github.com/web-platform-dx/web-features/pull/761.
105
+ if (!data.description) {
106
+ throw new Error(`description is missing from ${key}.yml`);
107
+ }
108
+
109
// Ensure description is not too long.
110
if (data.description?.length > descriptionMaxLength) {
111
throw new Error(`description in ${key}.yml is too long, ${data.description.length} characters. The maximum allowed length is ${descriptionMaxLength}.`)
0 commit comments