Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jbee authored Jan 23, 2024
1 parent 33fe4c8 commit 8577e13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ JsonObject obj = JsonMixed.of("""
"no": 0,
"street": "Elm"
}""");
obj.isA(JsonAddress.class); // true
obj.isA(JsonAddress.class); // false, no < 1
JsonAddress a = obj.asA(JsonAddress.class); // throws exception, no < 1
```
Both `isA` and `asA` can also be limited to a given set of validation `Rule`
types.
types.

0 comments on commit 8577e13

Please sign in to comment.