Skip to content

Commit

Permalink
Extract use case from JsonNode only if it is textual
Browse files Browse the repository at this point in the history
  • Loading branch information
fslev committed Nov 1, 2022
1 parent c0cf88d commit dba5ff0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Changelog

## 5.3-SNAPSHOT

- #### Changed
- Extract use case from JsonNode only if it is textual

## 5.2 (2022-10-31)
- #### Changed
- refactor AssertionError messages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class AbstractJsonMatcher {
protected abstract List<String> match();

protected static UseCase getUseCase(JsonNode node) {
if (node.isValueNode()) {
if (node.isTextual()) {
return getUseCase(node.asText());
}
return UseCase.MATCH;
Expand Down

0 comments on commit dba5ff0

Please sign in to comment.