Skip to content

Commit b6d6811

Browse files
authored
fast-json-stringify is not a validator (#558)
* fast-json-stringify is not a validator * fixup Signed-off-by: Matteo Collina <[email protected]> Signed-off-by: Matteo Collina <[email protected]>
1 parent 72d2c9f commit b6d6811

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,10 @@ While the `schema` is currently validated for any developer errors,
656656
there is no guarantee that supplying user-generated schema could not
657657
expose your application to remote attacks.
658658

659+
Users are responsibile for sending trusted data. `fast-json-stringify` guarantees that you will get
660+
a valid output only if your input matches the schema or can be coerced to the schema. If your input
661+
doesn't match the schema, you will get undefined behavior.
662+
659663
<a name="debug"></a>
660664
### Debug Mode
661665

0 commit comments

Comments
 (0)