From 717b231b76f3f2a7c085e37b39bca867e701eea5 Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi Date: Fri, 1 May 2020 16:01:48 +0200 Subject: [PATCH] Add motivation and closure as match rule example --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 61e6b88..7d57090 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,13 @@ Run tests (optional) $ npm test ``` +## Use cases + +1. You can use this module as a basic JSON schema validator +2. Can also be used in unit testing for broader assertions +3. Can be used to extract values from a complex API response (parsing chat bot responses for example) +4. Can be used for a JSON linter + ## Usage examples Keep in mind that the tester object can be a subset of the payload. You don't have to write explicit rules for all the properties of the payload object.