fix(cli): keep generated config schema closed to unknown keys

This commit is contained in:
Kit Langton
2026-09-27 10:30:41 -03:00
parent c73650371b
commit 54900febfc
+1 -1
View File
@@ -5,7 +5,7 @@ import { Info, SchemaURL } from "../src/config/schema"
const target = process.argv[2]
if (!target) throw new Error("A schema output path is required")
const document = Schema.toJsonSchemaDocument(Info)
const document = Schema.toJsonSchemaDocument(Info, { onExcessProperty: "error" })
const content = await format(
JSON.stringify({
$schema: "https://json-schema.org/draft/2020-12/schema",