Skip to content

Commit

Permalink
* Added one case to be able prepare demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Aug 1, 2023
1 parent 5c766d1 commit 5889004
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ object ResponseExtractJson extends ResponsePerformer {
// Extract "jsonKey" from the object at the given index
val value: String = objects(listIndex).asJsObject.getFields(jsonKey) match {
case Seq(JsString(value)) => value
case Seq(JsNumber(value)) => value.toString()
case _ =>
println(s"Expected '$jsonKey' field not found in provided json.") // TODO - replace by logger call in Issue #11
return false
Expand Down

0 comments on commit 5889004

Please sign in to comment.