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 58b9eab commit 5d92713Copy full SHA for 5d92713
1 file changed
src/json/index.test.ts
@@ -28,7 +28,7 @@ test("validateSchema - required properties are required", async (t) => {
28
t.true(json.validateSchema(testSchema, { requiredKey: "foo" }));
29
});
30
31
-test("validateSchema - optional properties are optional", async (t) => {
+test("validateSchema - optionalOrNullSchema properties are optional or null", async (t) => {
32
// Optional fields may be absent
33
t.true(json.validateSchema(optionalOrNullSchema, {}));
34
t.true(json.validateSchema(optionalOrNullSchema, { optionalKey: undefined }));
0 commit comments