Skip to content

Commit 8e663d0

Browse files
authored
Update docs about javaSemantics flag (#346)
1 parent 6cb431f commit 8e663d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/config.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,10 @@ may have been built.
4848

4949
The type for this variable is Map<String, String>.
5050

51+
* javaSemantics
52+
53+
When set to true, use Java-specific semantics rather than native JavaScript semantics.
54+
55+
For example, if the node type is `number` per JS semantics where the value can be losslesly interpreted as `java.lang.Long`, the validator would use `integer` as the node type instead of `number`. This is useful when schema type is `integer`, since validation would fail otherwise.
56+
57+
For more details, please refer to this [issue](https://github.com/networknt/json-schema-validator/issues/334).

0 commit comments

Comments
 (0)