Skip to content

Commit 9cb3db1

Browse files
committed
add note about different behavior
1 parent 4dfd38a commit 9cb3db1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@ deserialization.
231231
This attribute can be used on records, even when they are embedded in other
232232
types.
233233

234+
> **Note:** For the Melange PPX, ignoring extra fields is the default behavior -
235+
> you don't need to explicitly add the `[@json.allow_extra_fields]` attribute.
236+
> The attribute is primarily useful for the native PPX where strict field
237+
> checking is the default.
238+
234239
**Example 1: Ignoring extra fields in records**
235240

236241
```ocaml

0 commit comments

Comments
 (0)