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 748d6e6 commit 6064fbbCopy full SHA for 6064fbb
1 file changed
src/skills/schema.ts
@@ -50,11 +50,12 @@ export const validateSkillManifest = (value: unknown): ValidationResult => {
50
errors.push("Missing or invalid entry.");
51
}
52
53
- if (
54
- !Array.isArray(record.assets) ||
55
- record.assets.some((item) => !isNonEmptyString(item))
56
- ) {
57
- errors.push("Missing or invalid assets (expected an array of strings).");
+ if (!Array.isArray(record.assets)) {
+ errors.push("Missing assets (expected an array of strings).");
+ } else if (record.assets.length === 0) {
+ errors.push("Assets must include at least one file.");
+ } else if (record.assets.some((item) => !isNonEmptyString(item))) {
58
+ errors.push("Assets must be non-empty strings.");
59
60
61
if (!isRecord(record.defaults)) {
0 commit comments