Skip to main content
← Back to list
01Issue
BugOpenExtensions
AssigneesNone

Relationships

#1262 fix(software-factory): DeclaredSchemaSchema.enum rejects boolean literals

Opened by stack72 · 7/18/2026

Summary

@swamp/software-factory's _lib/definition_schema.ts defines DeclaredSchemaSchema.enum as z.array(z.union([z.string(), z.number()])) — this rejects boolean literals (e.g. { type: "boolean", enum: [true] }) which are valid per JSON Schema. The graph-valid pre-flight check uses this schema, causing factory definitions with boolean enum constraints to fail at start time.

Fix

Add z.boolean() to the union: z.array(z.union([z.string(), z.number(), z.boolean()]))

Context

Reported in #1236. The CLI side has been fixed separately (swamp model validate now runs all checks regardless of appliesTo), but the extension still rejects valid boolean enums.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED

Open

7/18/2026, 9:02:42 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.