title: Pact: How do I match an object whose keys match a regular expression?
body: <p>I am trying to write a pact consumer test to match the following response.</p>
  
  <pre><code>[
    {
        "accountId" : 1,
        "permissions" : [
           {
              "schedule" : {
                 "01/01/2018" : false,
                 "01/01/1900" : true
              },
              "permissionId" : 3
           }
        ]
     }
  ]
  </code></pre>
  
  <p>Each schedule object is composed of an unknown number of keys which match a simple regular expression.  But I don't see a way to match a key using a regular expression while having the value map to a simple boolean.</p>
  
  <p>For instance, I see the following method in the API.</p>
  
  <pre><code>public LambdaDslObject eachKeyLike(
          String exampleKey,
          Consumer&lt;LambdaDslObject&gt; nestedObject)
  </code></pre>
  
  <p>But that is going to expect a new object as the value, instead of a primitive type.</p>
  
  <pre><code>"schedule" : {
    "01/01/2018" : { ... },    // not what I want to match
    "01/01/1900" : false       // what I want to match
  }
  </code></pre>
  
  <p>Is there a way to specify an imprecise key mapped to a primitive value in pact-jvm?</p>