Skip to content

v0.4.3

Compare
Choose a tag to compare
@ptrthomas ptrthomas released this 26 Jun 05:54
· 4193 commits to master since this release

The main driver for this release is the updated instructions on how to (optionally) integrate the 3rd party cucumber-reporting library instead of using the maven-cucumber-reporting plugin because of this issue. Refer to the karate-demo documentation for more.

Some documentation sections were improved and new sections added.

In addition the JSON structure validation (which is an alternative to JSON-schema) was improved, with the support for denoting optional fields by using ## instead of # as the validator 'macro' prefix. One more enhancement is to support the combination of a built-in validator and a self-validation 'predicate' expression. For example:

* def foo = ['bar', 'baz']
# should be an array of strings each of length 3
* match foo == '#[] #string? _.length == 3'

This visual is a good way to explain what is possible and how Karate provides a simpler yet more powerful alternative to JSON-schema.

karate-vs-json-schema