Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 162fc30

Browse files
committed
Add editorial comment on ajvs safe mode
1 parent 7483f4c commit 162fc30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pages/posts/get-started-with-json-schema-in-node-js.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ Pretty slick, huh?
110110

111111
Alright, we've created a schema which describes the structure and types we expect, validated data against it, and handled any validation errors. So far so good!
112112

113+
> A note from the editor: In the latest major release of AJV, a "strict mode" was introduced, enabled by default, which sometimes throws an exception when a valid JSON Schema is used. If you run into problems with strict mode related errors, check out [the documentation](https://ajv.js.org/strict-mode.html) for details on how to disable it, or even specific rules. We feel this may be better as linter functionality, however it does help prevent accidental errors in schema authorship. - Ben Hutton
114+
113115
As one final step, we'll look at how we can potentially improve the way we create our JSON schema.
114116

115117
## Schema generation

0 commit comments

Comments
 (0)