pact-foundation / pact-specification

Describes the pact format and verification specifications
MIT License
295 stars 28 forks source link

The readme regex examples are missing the match property #66

Open vedeja opened 4 years ago

vedeja commented 4 years ago

The matching rule example for regex appears to be missing the "match": "regex" property, unless the specification actually allows for it to be omitted.

"$.body[0][*].id": { "regex": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" }

uglyog commented 4 years ago

"match": "regex" is required, the example is wrong. But most implementations will probably work without it. Maybe.