Skip to content

Commit 9e759e9

Browse files
committed
fix: README for dot property
1 parent 44099bc commit 9e759e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tzatziki-mapper/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ to [this one](https://github.com/Decathlon/tzatziki/tree/main/tzatziki-jackson/s
2929
to your project/module.
3030

3131
## Dot properties
32-
By default, dot properties will be parsed to nested objects. You can disable this behaviour through `Mapper.DOT_PROPERTY_TO_OBJECT` boolean:
32+
By default, dot properties will be parsed to nested objects. You can disable this behaviour through `Mapper.shouldConvertDotPropertiesToObject` method:
3333
```java
3434
@Test
3535
void yamlDotPropertyToObject(){
@@ -41,7 +41,7 @@ void yamlDotPropertyToObject(){
4141
name: bob
4242
""");
4343

44-
Mapper.DOT_PROPERTY_TO_OBJECT=false;
44+
Mapper.shouldConvertDotPropertiesToObject(false);
4545
Assertions.assertEquals(Mapper.toYaml("""
4646
user.name: bob
4747
"""),

0 commit comments

Comments
 (0)