Guest User

Pactfile

a guest
Jun 20th, 2025
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "consumer": {
  3.     "name": "dynamic-forms-ui-consumer"
  4.   },
  5.   "messages": [
  6.     {
  7.       "contents": {
  8.         "formErrors": {},
  9.         "formFields": {
  10.           "simpletext": {
  11.             "id": "simpletext",
  12.             "isDisabled": false,
  13.             "isDisplayed": true,
  14.             "isRequired": false,
  15.             "label": "Simpletext label"
  16.           }
  17.         },
  18.         "formValues": {
  19.           "simpletext": {
  20.             "value": "test value"
  21.           }
  22.         },
  23.         "instanceId": "testInstanceId"
  24.       },
  25.       "description": "a form state update event with field values",
  26.       "matchingRules": {
  27.         "body": {
  28.           "$.formErrors": {
  29.             "combine": "AND",
  30.             "matchers": [
  31.               {
  32.                 "match": "type"
  33.               }
  34.             ]
  35.           },
  36.           "$.formFields": {
  37.             "combine": "AND",
  38.             "matchers": [
  39.               {
  40.                 "match": "type"
  41.               }
  42.             ]
  43.           },
  44.           "$.formValues": {
  45.             "combine": "AND",
  46.             "matchers": [
  47.               {
  48.                 "match": "type"
  49.               }
  50.             ]
  51.           },
  52.           "$.instanceId": {
  53.             "combine": "AND",
  54.             "matchers": [
  55.               {
  56.                 "match": "type"
  57.               }
  58.             ]
  59.           }
  60.         }
  61.       },
  62.       "metadata": {
  63.         "contentType": "application/json"
  64.       }
  65.     },
  66.     {
  67.       "contents": {
  68.         "formErrors": {
  69.           "simpletext": "This field is required"
  70.         },
  71.         "formFields": {
  72.           "simpletext": {
  73.             "id": "simpletext",
  74.             "isDisabled": false,
  75.             "isDisplayed": true,
  76.             "isRequired": true,
  77.             "label": "Simpletext label"
  78.           }
  79.         },
  80.         "formValues": {
  81.           "simpletext": {
  82.             "value": ""
  83.           }
  84.         },
  85.         "instanceId": "testInstanceId"
  86.       },
  87.       "description": "a form state update event with validation errors",
  88.       "matchingRules": {
  89.         "body": {
  90.           "$.formErrors": {
  91.             "combine": "AND",
  92.             "matchers": [
  93.               {
  94.                 "match": "type"
  95.               }
  96.             ]
  97.           },
  98.           "$.formFields": {
  99.             "combine": "AND",
  100.             "matchers": [
  101.               {
  102.                 "match": "type"
  103.               }
  104.             ]
  105.           },
  106.           "$.formValues": {
  107.             "combine": "AND",
  108.             "matchers": [
  109.               {
  110.                 "match": "type"
  111.               }
  112.             ]
  113.           },
  114.           "$.instanceId": {
  115.             "combine": "AND",
  116.             "matchers": [
  117.               {
  118.                 "match": "type"
  119.               }
  120.             ]
  121.           }
  122.         }
  123.       },
  124.       "metadata": {
  125.         "contentType": "application/json"
  126.       }
  127.     },
  128.     {
  129.       "contents": {
  130.         "pageId": ""
  131.       },
  132.       "description": "a setCurrentPage event with empty pageId",
  133.       "metadata": {
  134.         "contentType": "application/json"
  135.       }
  136.     },
  137.     {
  138.       "contents": {
  139.         "pageId": null
  140.       },
  141.       "description": "a setCurrentPage event with null pageId",
  142.       "metadata": {
  143.         "contentType": "application/json"
  144.       }
  145.     },
  146.     {
  147.       "contents": {
  148.         "pageId": "page1"
  149.       },
  150.       "description": "a setCurrentPage event with valid pageId",
  151.       "matchingRules": {
  152.         "body": {
  153.           "$.pageId": {
  154.             "combine": "AND",
  155.             "matchers": [
  156.               {
  157.                 "match": "type"
  158.               }
  159.             ]
  160.           }
  161.         }
  162.       },
  163.       "metadata": {
  164.         "contentType": "application/json"
  165.       }
  166.     },
  167.     {
  168.       "contents": {
  169.         "formValues": {
  170.           "firstName": {
  171.             "value": null
  172.           },
  173.           "lastName": {
  174.             "value": null
  175.           }
  176.         }
  177.       },
  178.       "description": "a setFormValues event clearing values",
  179.       "matchingRules": {
  180.         "body": {
  181.           "$.formValues": {
  182.             "combine": "AND",
  183.             "matchers": [
  184.               {
  185.                 "match": "type"
  186.               }
  187.             ]
  188.           }
  189.         }
  190.       },
  191.       "metadata": {
  192.         "contentType": "application/json"
  193.       }
  194.     },
  195.     {
  196.       "contents": {
  197.         "formValues": {}
  198.       },
  199.       "description": "a setFormValues event with empty values",
  200.       "matchingRules": {
  201.         "body": {
  202.           "$.formValues": {
  203.             "combine": "AND",
  204.             "matchers": [
  205.               {
  206.                 "match": "type"
  207.               }
  208.             ]
  209.           }
  210.         }
  211.       },
  212.       "metadata": {
  213.         "contentType": "application/json"
  214.       }
  215.     },
  216.     {
  217.       "contents": {
  218.         "formValues": {
  219.           "firstName": {
  220.             "value": "John"
  221.           },
  222.           "lastName": {
  223.             "value": "Doe"
  224.           }
  225.         }
  226.       },
  227.       "description": "a setFormValues event with initial values",
  228.       "matchingRules": {
  229.         "body": {
  230.           "$.formValues": {
  231.             "combine": "AND",
  232.             "matchers": [
  233.               {
  234.                 "match": "type"
  235.               }
  236.             ]
  237.           }
  238.         }
  239.       },
  240.       "metadata": {
  241.         "contentType": "application/json"
  242.       }
  243.     }
  244.   ],
  245.   "metadata": {
  246.     "pact-js": {
  247.       "version": "15.0.1"
  248.     },
  249.     "pactRust": {
  250.       "ffi": "0.4.22",
  251.       "models": "1.2.3"
  252.     },
  253.     "pactSpecification": {
  254.       "version": "3.0.0"
  255.     }
  256.   },
  257.   "provider": {
  258.     "name": "dynamic-forms-ui-provider"
  259.   }
  260. }
Advertisement
Add Comment
Please, Sign In to add comment