-
-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(matching): add a number of common matchers to DSL
Added the following matchers: * `boolean` - Match a boolean value (using equality) * `integer` - Will match all numbers that are integers (both ints and longs) * `decimal` - Will match all real numbers (floating point and decimal) * `hexadecimal` - Will match all hexadecimal encoded strings * `iso8601Date` - Will match string containing basic ISO8601 dates (e.g. 2016-01-01) * `iso8601DateTime` - Will match string containing ISO 8601 formatted dates (e.g. 2015-08-06T16:53:10+01:00) * `iso8601DateTimeWithMillis` - Will match string containing ISO 8601 formatted dates, enforcing millisecond precision (e.g. 2015-08-06T16:53:10.123+01:00) * `rfc3339Timestamp` - Will match a string containing an RFC3339 formatted timestamp (e.g. Mon, 31 Oct 2016 15:21:41 -0400) * `iso8601Time` - Will match string containing times (e.g. T22:44:30.652Z) * `ipv4Address` - Will match string containing IP4 formatted address * `ipv6Address` - Will match string containing IP6 formatted address * `uuid` - Will match strings containing UUIDs See #120.
- Loading branch information
Showing
3 changed files
with
328 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.