for-GET / katt

KATT (Klarna API Testing Tool) is an HTTP-based API testing tool for Erlang.
https://github.com/for-GET/katt
Apache License 2.0
119 stars 16 forks source link

no error on wildcard expected but undefined ?! #54

Closed andreineculau closed 7 years ago

andreineculau commented 7 years ago

it seems strange, and potentially a bug that

{
  "foo": "{{_}}",
  "{{_}}": "{{unexpected}}"
}

will not fail if the payload is actually the empty object {}

andreineculau commented 7 years ago

seems like a breaking change was not identified in the 1.3.0 release c661b85 allow {{_}} to match nothing

this means that a new keyword {{expected}} needs to be added if one wants to require a value