Fixed an issue with the matching of the URIs for `actions`
[demos/example-siren] / spring-consumer / target / pacts / SpringConsumer-SirenOrderProvider.json
index d666dde..a8f8b03 100644 (file)
             },
             "$.entities[*][0].href": {
               "example": "http://localhost:8080/orders/1234",
-              "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$",
+              "regex": ".*\\/(\\Qorders\\E\\/\\d+)$",
               "type": "MockServerURL"
             },
             "$.entities[*][1].href": {
               "example": "http://localhost:8080/orders/1234",
-              "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$",
+              "regex": ".*\\/(\\Qorders\\E\\/\\d+)$",
               "type": "MockServerURL"
             },
             "$.links[0].href": {
                       "generators": {
                         "$.href": {
                           "example": "http://localhost:8080/orders/1234",
-                          "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$",
+                          "regex": ".*\\/(\\Qorders\\E\\/\\d+)$",
                           "type": "MockServerURL"
                         }
                       },
                           "matchers": [
                             {
                               "match": "regex",
-                              "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$"
-                            }
-                          ]
-                        },
-                        "$.method": {
-                          "combine": "AND",
-                          "matchers": [
-                            {
-                              "match": "type"
-                            }
-                          ]
-                        },
-                        "$.name": {
-                          "combine": "AND",
-                          "matchers": [
-                            {
-                              "match": "type"
+                              "regex": ".*\\/(\\Qorders\\E\\/\\d+)$"
                             }
                           ]
                         }
                       "generators": {
                         "$.href": {
                           "example": "http://localhost:8080/orders/1234",
-                          "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$",
+                          "regex": ".*\\/(\\Qorders\\E\\/\\d+)$",
                           "type": "MockServerURL"
                         }
                       },
                           "matchers": [
                             {
                               "match": "regex",
-                              "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$"
-                            }
-                          ]
-                        },
-                        "$.method": {
-                          "combine": "AND",
-                          "matchers": [
-                            {
-                              "match": "type"
-                            }
-                          ]
-                        },
-                        "$.name": {
-                          "combine": "AND",
-                          "matchers": [
-                            {
-                              "match": "type"
+                              "regex": ".*\\/(\\Qorders\\E\\/\\d+)$"
                             }
                           ]
                         }