https://pact.io logo
Join Slack
Powered by
# pact-scala-itv
  • w

    Wilson Xu

    11/02/2022, 7:54 PM
    Been trying to figure out the right matching rule for this sitaution. Below is the body
    Copy code
    {
      "ok": true,
      "systems": {
        "GooglePubSub": {
          "ok": "true"
        },
        "Database": {
          "ok": "true"
        },
        "GoogleGroups": {
          "ok": "true"
        },
        "GoogleIam": {
          "ok": "true"
        },
        "OpenDJ": {
          "ok": "true"
        }
      }
    }
    I would want to make sure that each system name (“GooglePubSub” etc) is a string. I know that you can do a matching rule on the ok type, but not really sure how to check the field name
    m
    • 2
    • 5
  • w

    Wilson Xu

    11/02/2022, 7:58 PM
    In the case that I can’t check the field name, is there a trick to get a similar effect?