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 2a939e7 commit 58b9eabCopy full SHA for 58b9eab
1 file changed
src/json/index.test.ts
@@ -49,7 +49,7 @@ const optionalSchema = {
49
optionalKey: json.optional(json.string),
50
};
51
52
-test("validateSchema - optional properties may be absent or undefined, but reject null", async (t) => {
+test("validateSchema - optional properties are optional", async (t) => {
53
// Optional fields may be absent or explicitly undefined
54
t.true(json.validateSchema(optionalSchema, {}));
55
t.true(json.validateSchema(optionalSchema, { optionalKey: undefined }));
0 commit comments