Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "consumer": {
- "name": "dynamic-forms-ui-consumer"
- },
- "messages": [
- {
- "contents": {
- "formErrors": {},
- "formFields": {
- "simpletext": {
- "id": "simpletext",
- "isDisabled": false,
- "isDisplayed": true,
- "isRequired": false,
- "label": "Simpletext label"
- }
- },
- "formValues": {
- "simpletext": {
- "value": "test value"
- }
- },
- "instanceId": "testInstanceId"
- },
- "description": "a form state update event with field values",
- "matchingRules": {
- "body": {
- "$.formErrors": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- },
- "$.formFields": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- },
- "$.formValues": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- },
- "$.instanceId": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- }
- }
- },
- "metadata": {
- "contentType": "application/json"
- }
- },
- {
- "contents": {
- "formErrors": {
- "simpletext": "This field is required"
- },
- "formFields": {
- "simpletext": {
- "id": "simpletext",
- "isDisabled": false,
- "isDisplayed": true,
- "isRequired": true,
- "label": "Simpletext label"
- }
- },
- "formValues": {
- "simpletext": {
- "value": ""
- }
- },
- "instanceId": "testInstanceId"
- },
- "description": "a form state update event with validation errors",
- "matchingRules": {
- "body": {
- "$.formErrors": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- },
- "$.formFields": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- },
- "$.formValues": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- },
- "$.instanceId": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- }
- }
- },
- "metadata": {
- "contentType": "application/json"
- }
- },
- {
- "contents": {
- "pageId": ""
- },
- "description": "a setCurrentPage event with empty pageId",
- "metadata": {
- "contentType": "application/json"
- }
- },
- {
- "contents": {
- "pageId": null
- },
- "description": "a setCurrentPage event with null pageId",
- "metadata": {
- "contentType": "application/json"
- }
- },
- {
- "contents": {
- "pageId": "page1"
- },
- "description": "a setCurrentPage event with valid pageId",
- "matchingRules": {
- "body": {
- "$.pageId": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- }
- }
- },
- "metadata": {
- "contentType": "application/json"
- }
- },
- {
- "contents": {
- "formValues": {
- "firstName": {
- "value": null
- },
- "lastName": {
- "value": null
- }
- }
- },
- "description": "a setFormValues event clearing values",
- "matchingRules": {
- "body": {
- "$.formValues": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- }
- }
- },
- "metadata": {
- "contentType": "application/json"
- }
- },
- {
- "contents": {
- "formValues": {}
- },
- "description": "a setFormValues event with empty values",
- "matchingRules": {
- "body": {
- "$.formValues": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- }
- }
- },
- "metadata": {
- "contentType": "application/json"
- }
- },
- {
- "contents": {
- "formValues": {
- "firstName": {
- "value": "John"
- },
- "lastName": {
- "value": "Doe"
- }
- }
- },
- "description": "a setFormValues event with initial values",
- "matchingRules": {
- "body": {
- "$.formValues": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- }
- }
- },
- "metadata": {
- "contentType": "application/json"
- }
- }
- ],
- "metadata": {
- "pact-js": {
- "version": "15.0.1"
- },
- "pactRust": {
- "ffi": "0.4.22",
- "models": "1.2.3"
- },
- "pactSpecification": {
- "version": "3.0.0"
- }
- },
- "provider": {
- "name": "dynamic-forms-ui-provider"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment