{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "urn:trafficparrot:mapping-schema:ibm-mq",
  "version": "1",
  "title": "Traffic Parrot IBM MQ mapping",
  "description": "One Traffic Parrot IBM MQ mapping: the request message to match and the response messages to send, as a JSON file in the ibm-mq-mappings directory (ibm-mq-mappings/*.json). A check against this schema is stricter than loading the mapping: it rejects a misspelt key, which Traffic Parrot would ignore.",
  "$comment": "The shared matcher vocabulary is documented in full in http-mapping.schema.json. IBM MQ mappings have no state-machine scenario fields: for messaging, 'scenario' is only the directory the file lives in. Maintainer notes: Standalone JSON Schema for a single Traffic Parrot IBM MQ mapping file (ibm-mq-mappings/*.json). Strictness notes: (1) the engine binds these files LENIENTLY (FAIL_ON_UNKNOWN_PROPERTIES=false in the filesystem object mapper) - misspelled fields are silently ignored at load time; this schema rejects unknown properties everywhere, which is exactly the validation gap it exists to close; (2) matcher objects are validated stricter than the engine, which silently ignores unknown sibling keys inside a matcher; (3) transformer class names and thread counts are constrained to their known shapes although the engine binds them loosely; (4) binaryEqualTo is available as the top-level request.bodyMatcher only, with an inline Base64 operand only (not nested inside and/or/not, whose operands are string-value matchers, and a bodyFileName reference on it is refused when the mapping loads); it compares the message bytes as Traffic Parrot read them - the raw bytes of an MQFMT_NONE or RFH-wrapped body, and for an MQFMT_STRING body the UTF-8 encoding of the decoded text; (5) the engine's JSON parser relaxations (comments, single quotes) are not modelled - this schema validates strict JSON; (6) priority (minimum 1), receiveThreads/sendThreads/maxMessagesInProgress (minimum 1) and fixedDelayMilliseconds (minimum 0) are constrained although the engine binds them as unbounded integers and honours 0 or negative priority in ordering - this matches the numeric strictness of the committed http-mapping.schema.json. Behaviour notes: a mapping may have NO response at all (the engine supports consume-without-reply); the deprecated singular response is still read and merged into the list, but re-saves emit responses[] only; there is no queue-manager matcher - queue-manager association comes from the separate ibm-mq-connections.json at the traffic-files root. Round-trip fields deliberately accepted: mappingName (set to the file name on load, emitted on every loaded-then-re-saved mapping, silently ignored on read), never-serialized-field (read-side-only creator property on each response, null only), destination.skipDeclare / destination.declareArguments (always emitted on re-save), and null destinationLookup.",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "description": "Reference to this schema for IDE support. Traffic Parrot ignores it.",
      "examples": [
        "http://localhost:8080/schemas/ibm-mq-mapping.schema.json"
      ]
    },
    "id": {
      "type": "string",
      "description": "Unique identifier for the mapping. When Traffic Parrot saves a mapping it writes id, never mappingId.",
      "examples": [
        "0b1d4c39-6c2f-4e0e-9a51-8f2a3c5d7e90"
      ]
    },
    "mappingId": {
      "type": "string",
      "description": "Older name for id. Traffic Parrot reads it when it loads the mapping, and writes id in its place when it saves the mapping.",
      "examples": [
        "0b1d4c39-6c2f-4e0e-9a51-8f2a3c5d7e90"
      ]
    },
    "mappingName": {
      "type": "string",
      "description": "Do not write this key by hand. Traffic Parrot ignores any value written here: it sets the key to the file name when it loads the mapping, and writes it when it saves the mapping. The schema accepts it so that a saved mapping passes a check.",
      "examples": [
        "order-request.json"
      ]
    },
    "priority": {
      "type": "integer",
      "minimum": 1,
      "description": "Priority of this mapping (default 5, lower number = higher priority). This schema accepts 1 or more.",
      "examples": [
        1
      ]
    },
    "request": {
      "$ref": "#/definitions/request",
      "examples": [
        {
          "destination": {
            "name": "ORDERS.REQUEST",
            "type": "QUEUE"
          },
          "bodyMatcher": {
            "contains": "orderId"
          }
        }
      ]
    },
    "response": {
      "$ref": "#/definitions/response",
      "description": "DEPRECATED single-response form: use responses instead. Traffic Parrot still reads it and adds it to the responses list, and writes responses alone when it saves the mapping.",
      "examples": [
        {
          "destination": {
            "name": "ORDERS.RESPONSE",
            "type": "QUEUE"
          },
          "text": "{\"status\": \"accepted\"}",
          "format": "MQFMT_STRING"
        }
      ]
    },
    "responses": {
      "type": "array",
      "description": "Responses to send when the request matches, in order. A mapping with no response (and no responses) consumes the request message without replying, which Traffic Parrot supports.",
      "items": {
        "$ref": "#/definitions/response"
      },
      "examples": [
        [
          {
            "destination": {
              "name": "ORDERS.RESPONSE",
              "type": "QUEUE"
            },
            "text": "{\"status\": \"accepted\"}",
            "format": "MQFMT_STRING"
          }
        ]
      ]
    },
    "receiveThreads": {
      "type": "integer",
      "minimum": 1,
      "description": "Number of threads receiving from the request destination (default 1). This schema accepts 1 or more.",
      "examples": [
        1
      ]
    },
    "sendThreads": {
      "type": "integer",
      "minimum": 1,
      "description": "Number of threads sending responses (default 1). This schema accepts 1 or more.",
      "examples": [
        1
      ]
    },
    "maxMessagesInProgress": {
      "type": "integer",
      "minimum": 1,
      "description": "Maximum number of messages processed concurrently. Unlimited when absent. This schema accepts 1 or more.",
      "examples": [
        100
      ]
    }
  },
  "required": [
    "request"
  ],
  "additionalProperties": false,
  "definitions": {
    "request": {
      "type": "object",
      "description": "Request matching criteria: which destination to listen on and which message bodies to match. There is no matcher for the queue manager: which queue manager a mapping uses comes from ibm-mq-connections.json in the files root.",
      "properties": {
        "destination": {
          "$ref": "#/definitions/destination",
          "examples": [
            {
              "name": "ORDERS.REQUEST",
              "type": "QUEUE"
            }
          ]
        },
        "bodyMatcher": {
          "$ref": "#/definitions/contentMatcher",
          "description": "Single matcher object applied to the request message body (shared string-value matcher vocabulary; binaryEqualTo is additionally available here, matching the message bytes, as the binaryEqualTo key says). This top-level matcher is the one position where the expected value may be externalised as {\"bodyFileName\": \"<file>\"} under __files, read when the mapping loads; a file reference nested inside and/or/not is refused at load with an error naming the mapping file.",
          "examples": [
            {
              "contains": "orderId"
            }
          ]
        }
      },
      "required": [
        "destination",
        "bodyMatcher"
      ],
      "additionalProperties": false
    },
    "response": {
      "type": "object",
      "description": "One response message to send when the request matches.",
      "properties": {
        "destination": {
          "$ref": "#/definitions/destination",
          "examples": [
            {
              "name": "ORDERS.RESPONSE",
              "type": "QUEUE"
            }
          ]
        },
        "text": {
          "type": "string",
          "description": "Response message body. May contain Handlebars templates. For the binary formats (MQFMT_RF_HEADER_1/2, MQFMT_NONE) this is the printable-characters encoding of the bytes to write. A mapping whose transformer builds the whole message may omit it. Mutually exclusive with bodyFileName.",
          "examples": [
            "{\"status\": \"accepted\"}"
          ]
        },
        "bodyFileName": {
          "type": "string",
          "description": "Response message body read from this file under the __files directory instead of from an inline text. Supported only with the MQFMT_STRING format: the other three formats write printable-characters-decoded bytes, and a file-backed binary body is rejected at load. Mutually exclusive with text.",
          "examples": [
            "responses/order-accepted.json"
          ]
        },
        "format": {
          "type": "string",
          "enum": [
            "MQFMT_STRING",
            "MQFMT_RF_HEADER_1",
            "MQFMT_RF_HEADER_2",
            "MQFMT_NONE"
          ],
          "description": "MQ message format (default MQFMT_STRING). MQFMT_RF_HEADER_1/2 and MQFMT_NONE write the text as printable-characters-decoded bytes.",
          "examples": [
            "MQFMT_STRING"
          ]
        },
        "characterSet": {
          "type": "string",
          "enum": [
            "UTF_8",
            "UNICODE",
            "ASCII_850",
            "ISO_8859_1",
            "EBCDIC_US"
          ],
          "description": "Character set (CCSID) used when writing an MQFMT_STRING body (default UTF_8).",
          "examples": [
            "UTF_8"
          ]
        },
        "fixedDelayMilliseconds": {
          "type": "integer",
          "minimum": 0,
          "description": "Fixed delay in milliseconds before sending this response (default 0). This schema accepts 0 or more.",
          "examples": [
            250
          ]
        },
        "ibmMqResponseTransformerClassName": {
          "$ref": "#/definitions/transformerClassName",
          "examples": [
            "com.example.OrderResponseTransformer"
          ]
        },
        "destinationLookup": {
          "$ref": "#/definitions/destinationLookup",
          "examples": [
            "USE_MAPPING_RESPONSE_DESTINATION"
          ]
        },
        "replyToQueueManagerName": {
          "type": "string",
          "description": "Reply-to queue manager name set on the response message.",
          "examples": [
            "QM1"
          ]
        },
        "replyToQueueName": {
          "type": "string",
          "description": "Reply-to queue name set on the response message.",
          "examples": [
            "ORDERS.REPLY"
          ]
        },
        "never-serialized-field": {
          "$ref": "#/definitions/neverSerializedField",
          "examples": [
            null
          ]
        }
      },
      "required": [
        "destination"
      ],
      "not": {
        "required": [
          "text",
          "bodyFileName"
        ],
        "description": "An inline text and a bodyFileName are mutually exclusive: Traffic Parrot rejects a response that sets both."
      },
      "allOf": [
        {
          "if": {
            "required": [
              "bodyFileName"
            ],
            "properties": {
              "bodyFileName": {
                "type": "string",
                "pattern": "\\S"
              }
            }
          },
          "then": {
            "properties": {
              "format": {
                "const": "MQFMT_STRING"
              }
            }
          },
          "description": "A response body read from a file (bodyFileName) needs the MQFMT_STRING format, or no format at all: the other three formats are binary. The rule does not apply to a blank bodyFileName.",
          "$comment": "Guard: a file-backed response body is supported only with the MQFMT_STRING format - IbmMqResponse.validate() throws at load for the other three, which are binary. This is the structural half of the restriction the bodyFileName description states in prose, and prose alone cannot stop a generator or the validate CLI. An ABSENT format is accepted deliberately: the IbmMqResponse constructor defaults it to MQFMT_STRING, so only an explicitly binary format is refused. A BLANK bodyFileName is accepted for the same reason, which is what the pattern in the if is for: IbmMqResponse.validate() guards on isNotBlank(bodyFileName), so an empty or whitespace-only value never reaches the restriction and the mapping loads."
        }
      ],
      "additionalProperties": false
    },
    "destination": {
      "type": "object",
      "description": "A messaging destination: queue or topic name.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Queue or topic name.",
          "examples": [
            "ORDERS.REQUEST"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "QUEUE",
            "TOPIC"
          ],
          "description": "Destination type.",
          "examples": [
            "QUEUE"
          ]
        },
        "skipDeclare": {
          "type": "boolean",
          "description": "An AMQP setting that means nothing for IBM MQ. Traffic Parrot writes it, as false, every time it saves a mapping; it need not be written by hand.",
          "$comment": "AMQP-oriented field on the shared destination shape; not meaningful for IBM MQ but always emitted on re-save (false).",
          "examples": [
            false
          ]
        },
        "declareArguments": {
          "type": "object",
          "description": "An AMQP setting that means nothing for IBM MQ. Traffic Parrot writes it, as an empty object, every time it saves a mapping; it need not be written by hand.",
          "$comment": "AMQP-oriented field on the shared destination shape; not meaningful for IBM MQ but always emitted on re-save (empty object).",
          "additionalProperties": true,
          "examples": [
            {}
          ]
        }
      },
      "required": [
        "name",
        "type"
      ],
      "additionalProperties": false
    },
    "destinationLookup": {
      "enum": [
        null,
        "USE_REQUEST_MESSAGE_REPLY_TO_QUEUE_NAME_OR_MAPPING_RESPONSE_DESTINATION",
        "USE_MAPPING_RESPONSE_DESTINATION"
      ],
      "description": "How the response destination is resolved (default: use the request message's replyTo queue when present, otherwise the mapping's response destination). null is accepted only because Traffic Parrot writes it when it saves a mapping; it need not be written by hand."
    },
    "neverSerializedField": {
      "type": "null",
      "description": "Leave this key out: Traffic Parrot never writes it, and null is the only value it accepts.",
      "$comment": "Read-side-only creator property that binds a transformer-supplied response message object. Never written by the engine and only null is bindable from JSON - do not author it."
    },
    "transformerClassName": {
      "type": "string",
      "pattern": "^(NO_TRANSFORMER|([a-zA-Z_$][a-zA-Z0-9_$]*\\.)+[a-zA-Z_$][a-zA-Z0-9_$]*)$",
      "description": "Fully-qualified class name of an SDK response transformer, or the NO_TRANSFORMER sentinel."
    },
    "bodyFileRef": {
      "type": "object",
      "description": "Externalised matcher value: the expected value lives in a file under the __files directory. Valid on the top-level request.bodyMatcher only.",
      "properties": {
        "bodyFileName": {
          "type": "string",
          "examples": [
            "requests/expected-order.json"
          ],
          "description": "Name of a file under __files whose content is the matcher's value, in place of an inline value."
        }
      },
      "required": [
        "bodyFileName"
      ],
      "additionalProperties": false,
      "examples": [
        {
          "bodyFileName": "requests/expected-order.json"
        }
      ]
    },
    "contentMatcher": {
      "type": "object",
      "description": "The request.bodyMatcher form: every string-value matcher, with the expected value inline or, for the matchers that offer it, externalised as {\"bodyFileName\": \"<file>\"}, plus binaryEqualTo (byte-for-byte matching of the message bytes, available at the top level only - not nested inside and/or/not). The file form is resolved when the mapping loads and only at this top level - inside and/or/not Traffic Parrot refuses it, which is why those positions use stringValueMatcher.",
      "properties": {
        "equalTo": {
          "description": "Exact string equality.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/definitions/bodyFileRef"
            }
          ],
          "examples": [
            "ORD-42"
          ]
        },
        "caseInsensitive": {
          "type": "boolean",
          "description": "Option for equalTo.",
          "examples": [
            true
          ]
        },
        "equalToJson": {
          "description": "Semantic JSON equality. Inline JSON value, a string containing JSON, or a bodyFileName reference object.",
          "type": [
            "string",
            "object",
            "array"
          ],
          "examples": [
            {
              "orderId": 42
            }
          ]
        },
        "ignoreArrayOrder": {
          "type": "boolean",
          "description": "Option for equalToJson / matchesJson.",
          "examples": [
            true
          ]
        },
        "ignoreExtraElements": {
          "type": "boolean",
          "description": "Option for equalToJson / matchesJson.",
          "examples": [
            true
          ]
        },
        "treatNullAsAbsent": {
          "type": "boolean",
          "description": "Option for equalToJson.",
          "examples": [
            true
          ]
        },
        "matchesJsonSchema": {
          "description": "Value must validate against the given JSON Schema (inline object, string, or bodyFileName reference object).",
          "type": [
            "string",
            "object"
          ],
          "examples": [
            {
              "type": "object",
              "required": [
                "orderId"
              ]
            }
          ]
        },
        "schemaVersion": {
          "type": "string",
          "enum": [
            "V4",
            "V6",
            "V7",
            "V201909",
            "V202012"
          ],
          "description": "Option for matchesJsonSchema (default V202012).",
          "examples": [
            "V202012"
          ]
        },
        "equalToXml": {
          "description": "Semantic XML equality.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/definitions/bodyFileRef"
            }
          ],
          "examples": [
            "<order><id>42</id></order>"
          ]
        },
        "enablePlaceholders": {
          "type": "boolean",
          "description": "Option for equalToXml.",
          "examples": [
            true
          ]
        },
        "placeholderOpeningDelimiterRegex": {
          "type": "string",
          "description": "Option for equalToXml.",
          "examples": [
            "\\[\\["
          ]
        },
        "placeholderClosingDelimiterRegex": {
          "type": "string",
          "description": "Option for equalToXml.",
          "examples": [
            "\\]\\]"
          ]
        },
        "exemptedComparisons": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Option for equalToXml: XMLUnit ComparisonType names to exempt, in upper case as listed. Checked only beside equalToXml, the matcher that reads it.",
          "examples": [
            [
              "NAMESPACE_URI",
              "SCHEMA_LOCATION"
            ]
          ]
        },
        "ignoreOrderOfSameNode": {
          "type": "boolean",
          "description": "Option for equalToXml.",
          "examples": [
            true
          ]
        },
        "namespaceAwareness": {
          "type": "string",
          "enum": [
            "STRICT",
            "LEGACY",
            "NONE"
          ],
          "description": "Option for equalToXml.",
          "examples": [
            "NONE"
          ]
        },
        "matchesJsonPath": {
          "description": "JSONPath expression match: a string expression, an advanced {\"expression\": ..., <sub-matcher>} object, or a bodyFileName reference object.",
          "type": [
            "string",
            "object"
          ],
          "examples": [
            "$.orderId",
            {
              "expression": "$.status",
              "equalTo": "accepted"
            }
          ]
        },
        "matchesXPath": {
          "description": "XPath expression match: a string expression, an advanced {\"expression\": ..., <sub-matcher>} object, or a bodyFileName reference object.",
          "type": [
            "string",
            "object"
          ],
          "examples": [
            "/order/id",
            {
              "expression": "/order/status/text()",
              "equalTo": "accepted"
            }
          ]
        },
        "xPathNamespaces": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Option for matchesXPath: prefix to namespace URI.",
          "examples": [
            {
              "ord": "http://example.com/orders"
            }
          ]
        },
        "contains": {
          "description": "Substring match.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/definitions/bodyFileRef"
            }
          ],
          "examples": [
            "orderId"
          ]
        },
        "doesNotContain": {
          "description": "Negative substring match.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/definitions/bodyFileRef"
            }
          ],
          "examples": [
            "error"
          ]
        },
        "matches": {
          "description": "Regex match.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/definitions/bodyFileRef"
            }
          ],
          "examples": [
            "ORD-[0-9]+"
          ]
        },
        "doesNotMatch": {
          "description": "Negative regex match.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/definitions/bodyFileRef"
            }
          ],
          "examples": [
            ".*test.*"
          ]
        },
        "before": {
          "type": "string",
          "description": "Date-time before the given ISO-8601 instant or now-offset expression.",
          "examples": [
            "now +1 days"
          ]
        },
        "after": {
          "type": "string",
          "description": "Date-time after the given ISO-8601 instant or now-offset expression.",
          "examples": [
            "2026-01-01T00:00:00Z"
          ]
        },
        "equalToDateTime": {
          "type": "string",
          "description": "Date-time equality with the given ISO-8601 instant or now-offset expression.",
          "examples": [
            "now"
          ]
        },
        "actualFormat": {
          "type": "string",
          "description": "Option for before / after / equalToDateTime: format of the actual value.",
          "examples": [
            "dd/MM/yyyy"
          ]
        },
        "truncateExpected": {
          "type": "string",
          "description": "Option for before / after / equalToDateTime: truncate the expected date-time to this point before comparing. One of the examples, in any case, with a space or an underscore between words. Checked only beside before, after or equalToDateTime, the matchers that read it.",
          "examples": [
            "first second of minute",
            "first minute of hour",
            "first hour of day",
            "first day of month",
            "first day of next month",
            "last day of month",
            "first day of year",
            "first day of next year",
            "last day of year"
          ]
        },
        "truncateActual": {
          "type": "string",
          "description": "Option for before / after / equalToDateTime: truncate the actual date-time to this point before comparing. One of the examples, in any case, with a space or an underscore between words. Checked only beside before, after or equalToDateTime, the matchers that read it.",
          "examples": [
            "first second of minute",
            "first minute of hour",
            "first hour of day",
            "first day of month",
            "first day of next month",
            "last day of month",
            "first day of year",
            "first day of next year",
            "last day of year"
          ]
        },
        "applyTruncationLast": {
          "type": "boolean",
          "description": "Option for before / after / equalToDateTime.",
          "examples": [
            true
          ]
        },
        "expectedOffset": {
          "type": "integer",
          "description": "Option for before / after / equalToDateTime.",
          "examples": [
            1
          ]
        },
        "expectedOffsetUnit": {
          "type": "string",
          "description": "Option for before / after / equalToDateTime: the unit of expectedOffset. One of the examples, in any case.",
          "examples": [
            "SECONDS",
            "MINUTES",
            "HOURS",
            "DAYS",
            "MONTHS",
            "YEARS"
          ],
          "pattern": "^(?:[Ss][Ee][Cc][Oo][Nn][Dd][Ss]|[Mm][Ii][Nn][Uu][Tt][Ee][Ss]|[Hh][Oo][Uu][Rr][Ss]|[Dd][Aa][Yy][Ss]|[Mm][Oo][Nn][Tt][Hh][Ss]|[Yy][Ee][Aa][Rr][Ss])$"
        },
        "anything": {
          "type": "string",
          "description": "Matches any value. The operand string is ignored.",
          "examples": [
            "anything"
          ]
        },
        "absent": {
          "description": "The element must be absent. Canonically written as true; the operand value is ignored.",
          "examples": [
            true
          ]
        },
        "and": {
          "type": "array",
          "minItems": 2,
          "items": {
            "$ref": "#/definitions/stringValueMatcher"
          },
          "description": "All nested matchers must match. Nested matchers take inline values only.",
          "examples": [
            [
              {
                "contains": "order"
              },
              {
                "doesNotContain": "test"
              }
            ]
          ]
        },
        "or": {
          "type": "array",
          "minItems": 2,
          "items": {
            "$ref": "#/definitions/stringValueMatcher"
          },
          "description": "At least one nested matcher must match. Nested matchers take inline values only.",
          "examples": [
            [
              {
                "equalTo": "GB"
              },
              {
                "equalTo": "IE"
              }
            ]
          ]
        },
        "not": {
          "$ref": "#/definitions/stringValueMatcher",
          "description": "The nested matcher must not match. Nested matchers take inline values only.",
          "examples": [
            {
              "contains": "test"
            }
          ]
        },
        "matchesPathTemplate": {
          "type": "string",
          "description": "RFC 6570 path template match (string-value sub-matcher form).",
          "examples": [
            "/orders/{orderId}"
          ]
        },
        "matchesXml": {
          "description": "Traffic Parrot: XML match where element/attribute values may be regular expressions.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "#/definitions/bodyFileRef"
            }
          ],
          "examples": [
            "<order><id>42</id></order>"
          ]
        },
        "matchesJson": {
          "description": "Traffic Parrot: JSON match where values may be regular expressions. Inline JSON value, a string containing JSON, or a bodyFileName reference object.",
          "type": [
            "string",
            "object",
            "array"
          ],
          "examples": [
            {
              "orderId": 42
            }
          ]
        },
        "matchesGraphQL": {
          "description": "Traffic Parrot: GraphQL query match. A query string, an {\"operationName\": ..., \"variables\": ...} object, or a bodyFileName reference object.",
          "type": [
            "string",
            "object"
          ],
          "examples": [
            "{ order(id: 42) { status } }",
            {
              "operationName": "GetOrder",
              "variables": {
                "id": 42
              }
            }
          ]
        },
        "matchesSwiftField": {
          "description": "Traffic Parrot: match one field of a SWIFT MT message.",
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "examples": [
                "20"
              ],
              "description": "SWIFT MT field tag to read, for example 20 (transaction reference)."
            },
            "matches": {
              "type": "string",
              "examples": [
                "REF[0-9]+"
              ],
              "description": "Regular expression the field's value must match."
            },
            "bodyFileName": {
              "type": "string",
              "examples": [
                "requests/mt103-match.json"
              ],
              "description": "Name of a file under __files that holds this matcher's value, in place of an inline one. Use it alone."
            }
          },
          "anyOf": [
            {
              "required": [
                "field",
                "matches"
              ],
              "not": {
                "required": [
                  "bodyFileName"
                ]
              }
            },
            {
              "required": [
                "bodyFileName"
              ],
              "maxProperties": 1
            }
          ],
          "additionalProperties": false,
          "examples": [
            {
              "field": "20",
              "matches": "REF[0-9]+"
            }
          ]
        },
        "matchesFixField": {
          "description": "Traffic Parrot: match one field of a FIX message.",
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "examples": [
                "35"
              ],
              "description": "FIX tag number to read, for example 35 (MsgType)."
            },
            "matches": {
              "type": "string",
              "examples": [
                "D"
              ],
              "description": "Regular expression the tag's value must match."
            },
            "bodyFileName": {
              "type": "string",
              "examples": [
                "requests/fix-order-match.json"
              ],
              "description": "Name of a file under __files that holds this matcher's value, in place of an inline one. Use it alone."
            }
          },
          "anyOf": [
            {
              "required": [
                "field",
                "matches"
              ],
              "not": {
                "required": [
                  "bodyFileName"
                ]
              }
            },
            {
              "required": [
                "bodyFileName"
              ],
              "maxProperties": 1
            }
          ],
          "additionalProperties": false,
          "examples": [
            {
              "field": "35",
              "matches": "D"
            }
          ]
        },
        "matchesCicsField": {
          "description": "Traffic Parrot: match one field of a CICS bridge request (MQFMT_CICS) by its path in the request's JSON view (MQCIH.TransactionId, ProgramName, COMMAREA.ACCOUNT-NO, COMMAREA.TXN-ENTRY[0].TXN-AMOUNT with 0-based indices), with exactly one of equalTo, matches (a whole-value regular expression), greaterThan, greaterThanOrEqualTo, lessThan or lessThanOrEqualTo. Numbers compare as numbers.",
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "examples": [
                "COMMAREA.ACCOUNT-NO"
              ],
              "description": "Path from the root of the request view, names exactly as written: ProgramName, COMMAREA.<copybook field>, MQCIH.<header field> or MQMD.UserIdentifier. A [n] after a name is a 0-based table index, as in COMMAREA.TXN-ENTRY[1].TXN-AMOUNT."
            },
            "equalTo": {
              "type": [
                "string",
                "number"
              ],
              "examples": [
                "1234567890"
              ],
              "description": "The field's value equals this."
            },
            "matches": {
              "type": "string",
              "examples": [
                "[0-9]{10}"
              ],
              "description": "Regular expression the field's value must match."
            },
            "greaterThan": {
              "type": [
                "string",
                "number"
              ],
              "examples": [
                100
              ],
              "description": "The field's numeric value is greater than this."
            },
            "greaterThanOrEqualTo": {
              "type": [
                "string",
                "number"
              ],
              "examples": [
                100
              ],
              "description": "The field's numeric value is greater than or equal to this."
            },
            "lessThan": {
              "type": [
                "string",
                "number"
              ],
              "examples": [
                1000
              ],
              "description": "The field's numeric value is less than this."
            },
            "lessThanOrEqualTo": {
              "type": [
                "string",
                "number"
              ],
              "examples": [
                1000
              ],
              "description": "The field's numeric value is less than or equal to this."
            },
            "bodyFileName": {
              "type": "string",
              "examples": [
                "requests/cics-account-match.json"
              ],
              "description": "Name of a file under __files that holds this matcher's value, in place of an inline one. Use it alone."
            }
          },
          "anyOf": [
            {
              "required": [
                "field"
              ],
              "oneOf": [
                {
                  "required": [
                    "equalTo"
                  ]
                },
                {
                  "required": [
                    "matches"
                  ]
                },
                {
                  "required": [
                    "greaterThan"
                  ]
                },
                {
                  "required": [
                    "greaterThanOrEqualTo"
                  ]
                },
                {
                  "required": [
                    "lessThan"
                  ]
                },
                {
                  "required": [
                    "lessThanOrEqualTo"
                  ]
                }
              ],
              "not": {
                "required": [
                  "bodyFileName"
                ]
              }
            },
            {
              "required": [
                "bodyFileName"
              ],
              "maxProperties": 1
            }
          ],
          "additionalProperties": false,
          "examples": [
            {
              "field": "COMMAREA.ACCOUNT-NO",
              "equalTo": "1234567890"
            }
          ]
        },
        "binaryEqualTo": {
          "type": "string",
          "description": "Byte-for-byte equality of the Base64-decoded value with the message bytes as Traffic Parrot read them: the raw bytes of an MQFMT_NONE or RFH-wrapped body, and for an MQFMT_STRING body the UTF-8 encoding of the decoded text. Valid as the top-level bodyMatcher only, and inline only: a {\"bodyFileName\": ...} reference on it is refused when the mapping loads, so the schema does not offer the file form here.",
          "$comment": "Byte-for-byte equality of the message bytes with the Base64-decoded operand (strictness note 4 says which bytes). Valid as the top-level bodyMatcher only, and inline only: a {\"bodyFileName\": ...} reference on it is refused when the mapping loads (the fork's StringValuePatternJsonDeserializer.buildResolved has no binaryEqualTo arm), so the schema does not offer the file form here.",
          "examples": [
            "SGVsbG8="
          ]
        }
      },
      "additionalProperties": false,
      "anyOf": [
        {
          "required": [
            "equalTo"
          ]
        },
        {
          "required": [
            "equalToJson"
          ]
        },
        {
          "required": [
            "matchesJsonSchema"
          ]
        },
        {
          "required": [
            "equalToXml"
          ]
        },
        {
          "required": [
            "matchesJsonPath"
          ]
        },
        {
          "required": [
            "matchesXPath"
          ]
        },
        {
          "required": [
            "contains"
          ]
        },
        {
          "required": [
            "doesNotContain"
          ]
        },
        {
          "required": [
            "matches"
          ]
        },
        {
          "required": [
            "doesNotMatch"
          ]
        },
        {
          "required": [
            "before"
          ]
        },
        {
          "required": [
            "after"
          ]
        },
        {
          "required": [
            "equalToDateTime"
          ]
        },
        {
          "required": [
            "anything"
          ]
        },
        {
          "required": [
            "absent"
          ]
        },
        {
          "required": [
            "and"
          ]
        },
        {
          "required": [
            "or"
          ]
        },
        {
          "required": [
            "not"
          ]
        },
        {
          "required": [
            "matchesPathTemplate"
          ]
        },
        {
          "required": [
            "matchesXml"
          ]
        },
        {
          "required": [
            "matchesJson"
          ]
        },
        {
          "required": [
            "matchesGraphQL"
          ]
        },
        {
          "required": [
            "matchesSwiftField"
          ]
        },
        {
          "required": [
            "matchesFixField"
          ]
        },
        {
          "required": [
            "matchesCicsField"
          ]
        },
        {
          "required": [
            "binaryEqualTo"
          ]
        }
      ],
      "allOf": [
        {
          "if": {
            "anyOf": [
              {
                "required": [
                  "before"
                ]
              },
              {
                "required": [
                  "after"
                ]
              },
              {
                "required": [
                  "equalToDateTime"
                ]
              }
            ]
          },
          "then": {
            "properties": {
              "truncateExpected": {
                "pattern": "^(?:[Ff][Ii][Rr][Ss][Tt][ _][Ss][Ee][Cc][Oo][Nn][Dd][ _][Oo][Ff][ _][Mm][Ii][Nn][Uu][Tt][Ee]|[Ff][Ii][Rr][Ss][Tt][ _][Mm][Ii][Nn][Uu][Tt][Ee][ _][Oo][Ff][ _][Hh][Oo][Uu][Rr]|[Ff][Ii][Rr][Ss][Tt][ _][Hh][Oo][Uu][Rr][ _][Oo][Ff][ _][Dd][Aa][Yy]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Mm][Oo][Nn][Tt][Hh]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Nn][Ee][Xx][Tt][ _][Mm][Oo][Nn][Tt][Hh]|[Ll][Aa][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Mm][Oo][Nn][Tt][Hh]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Yy][Ee][Aa][Rr]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Nn][Ee][Xx][Tt][ _][Yy][Ee][Aa][Rr]|[Ll][Aa][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Yy][Ee][Aa][Rr])$"
              },
              "truncateActual": {
                "pattern": "^(?:[Ff][Ii][Rr][Ss][Tt][ _][Ss][Ee][Cc][Oo][Nn][Dd][ _][Oo][Ff][ _][Mm][Ii][Nn][Uu][Tt][Ee]|[Ff][Ii][Rr][Ss][Tt][ _][Mm][Ii][Nn][Uu][Tt][Ee][ _][Oo][Ff][ _][Hh][Oo][Uu][Rr]|[Ff][Ii][Rr][Ss][Tt][ _][Hh][Oo][Uu][Rr][ _][Oo][Ff][ _][Dd][Aa][Yy]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Mm][Oo][Nn][Tt][Hh]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Nn][Ee][Xx][Tt][ _][Mm][Oo][Nn][Tt][Hh]|[Ll][Aa][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Mm][Oo][Nn][Tt][Hh]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Yy][Ee][Aa][Rr]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Nn][Ee][Xx][Tt][ _][Yy][Ee][Aa][Rr]|[Ll][Aa][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Yy][Ee][Aa][Rr])$"
              }
            }
          }
        },
        {
          "if": {
            "required": [
              "equalToXml"
            ]
          },
          "then": {
            "properties": {
              "exemptedComparisons": {
                "items": {
                  "enum": [
                    "XML_VERSION",
                    "XML_STANDALONE",
                    "XML_ENCODING",
                    "HAS_DOCTYPE_DECLARATION",
                    "DOCTYPE_NAME",
                    "DOCTYPE_PUBLIC_ID",
                    "DOCTYPE_SYSTEM_ID",
                    "SCHEMA_LOCATION",
                    "NO_NAMESPACE_SCHEMA_LOCATION",
                    "NODE_TYPE",
                    "NAMESPACE_PREFIX",
                    "NAMESPACE_URI",
                    "TEXT_VALUE",
                    "PROCESSING_INSTRUCTION_TARGET",
                    "PROCESSING_INSTRUCTION_DATA",
                    "ELEMENT_TAG_NAME",
                    "ATTR_VALUE_EXPLICITLY_SPECIFIED",
                    "ELEMENT_NUM_ATTRIBUTES",
                    "ATTR_VALUE",
                    "CHILD_NODELIST_LENGTH",
                    "CHILD_NODELIST_SEQUENCE",
                    "CHILD_LOOKUP",
                    "ATTR_NAME_LOOKUP"
                  ]
                }
              }
            }
          }
        }
      ]
    },
    "stringValueMatcher": {
      "type": "object",
      "description": "A single string-value matcher: exactly one primary matcher key plus that matcher's option keys, with the expected value inline - the form for matchers nested inside and/or/not (no binaryEqualTo: the operands of and/or/not are string-value matchers). In that position Traffic Parrot refuses a bodyFileName reference when the mapping loads; only the top-level bodyMatcher (contentMatcher) offers the file form. The unrelated response bodyFileName field reads from __files.",
      "properties": {
        "equalTo": {
          "type": "string",
          "description": "Exact string equality.",
          "examples": [
            "ORD-42"
          ]
        },
        "caseInsensitive": {
          "type": "boolean",
          "description": "Option for equalTo.",
          "examples": [
            true
          ]
        },
        "equalToJson": {
          "description": "Semantic JSON equality. Inline JSON value or a string containing JSON.",
          "type": [
            "string",
            "object",
            "array"
          ],
          "examples": [
            {
              "orderId": 42
            }
          ]
        },
        "ignoreArrayOrder": {
          "type": "boolean",
          "description": "Option for equalToJson / matchesJson.",
          "examples": [
            true
          ]
        },
        "ignoreExtraElements": {
          "type": "boolean",
          "description": "Option for equalToJson / matchesJson.",
          "examples": [
            true
          ]
        },
        "treatNullAsAbsent": {
          "type": "boolean",
          "description": "Option for equalToJson.",
          "examples": [
            true
          ]
        },
        "matchesJsonSchema": {
          "description": "Value must validate against the given JSON Schema (inline object or string).",
          "type": [
            "string",
            "object"
          ],
          "examples": [
            {
              "type": "object",
              "required": [
                "orderId"
              ]
            }
          ]
        },
        "schemaVersion": {
          "type": "string",
          "enum": [
            "V4",
            "V6",
            "V7",
            "V201909",
            "V202012"
          ],
          "description": "Option for matchesJsonSchema (default V202012).",
          "examples": [
            "V202012"
          ]
        },
        "equalToXml": {
          "type": "string",
          "description": "Semantic XML equality.",
          "examples": [
            "<order><id>42</id></order>"
          ]
        },
        "enablePlaceholders": {
          "type": "boolean",
          "description": "Option for equalToXml.",
          "examples": [
            true
          ]
        },
        "placeholderOpeningDelimiterRegex": {
          "type": "string",
          "description": "Option for equalToXml.",
          "examples": [
            "\\[\\["
          ]
        },
        "placeholderClosingDelimiterRegex": {
          "type": "string",
          "description": "Option for equalToXml.",
          "examples": [
            "\\]\\]"
          ]
        },
        "exemptedComparisons": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Option for equalToXml: XMLUnit ComparisonType names to exempt, in upper case as listed. Checked only beside equalToXml, the matcher that reads it.",
          "examples": [
            [
              "NAMESPACE_URI",
              "SCHEMA_LOCATION"
            ]
          ]
        },
        "ignoreOrderOfSameNode": {
          "type": "boolean",
          "description": "Option for equalToXml.",
          "examples": [
            true
          ]
        },
        "namespaceAwareness": {
          "type": "string",
          "enum": [
            "STRICT",
            "LEGACY",
            "NONE"
          ],
          "description": "Option for equalToXml.",
          "examples": [
            "NONE"
          ]
        },
        "matchesJsonPath": {
          "description": "JSONPath expression match: a string expression or an advanced {\"expression\": ..., <sub-matcher>} object.",
          "type": [
            "string",
            "object"
          ],
          "examples": [
            "$.orderId",
            {
              "expression": "$.status",
              "equalTo": "accepted"
            }
          ]
        },
        "matchesXPath": {
          "description": "XPath expression match: a string expression or an advanced {\"expression\": ..., <sub-matcher>} object.",
          "type": [
            "string",
            "object"
          ],
          "examples": [
            "/order/id",
            {
              "expression": "/order/status/text()",
              "equalTo": "accepted"
            }
          ]
        },
        "xPathNamespaces": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Option for matchesXPath: prefix to namespace URI.",
          "examples": [
            {
              "ord": "http://example.com/orders"
            }
          ]
        },
        "contains": {
          "type": "string",
          "description": "Substring match.",
          "examples": [
            "orderId"
          ]
        },
        "doesNotContain": {
          "type": "string",
          "description": "Negative substring match.",
          "examples": [
            "error"
          ]
        },
        "matches": {
          "type": "string",
          "description": "Regex match.",
          "examples": [
            "ORD-[0-9]+"
          ]
        },
        "doesNotMatch": {
          "type": "string",
          "description": "Negative regex match.",
          "examples": [
            ".*test.*"
          ]
        },
        "before": {
          "type": "string",
          "description": "Date-time before the given ISO-8601 instant or now-offset expression.",
          "examples": [
            "now +1 days"
          ]
        },
        "after": {
          "type": "string",
          "description": "Date-time after the given ISO-8601 instant or now-offset expression.",
          "examples": [
            "2026-01-01T00:00:00Z"
          ]
        },
        "equalToDateTime": {
          "type": "string",
          "description": "Date-time equality with the given ISO-8601 instant or now-offset expression.",
          "examples": [
            "now"
          ]
        },
        "actualFormat": {
          "type": "string",
          "description": "Option for before / after / equalToDateTime: format of the actual value.",
          "examples": [
            "dd/MM/yyyy"
          ]
        },
        "truncateExpected": {
          "type": "string",
          "description": "Option for before / after / equalToDateTime: truncate the expected date-time to this point before comparing. One of the examples, in any case, with a space or an underscore between words. Checked only beside before, after or equalToDateTime, the matchers that read it.",
          "examples": [
            "first second of minute",
            "first minute of hour",
            "first hour of day",
            "first day of month",
            "first day of next month",
            "last day of month",
            "first day of year",
            "first day of next year",
            "last day of year"
          ]
        },
        "truncateActual": {
          "type": "string",
          "description": "Option for before / after / equalToDateTime: truncate the actual date-time to this point before comparing. One of the examples, in any case, with a space or an underscore between words. Checked only beside before, after or equalToDateTime, the matchers that read it.",
          "examples": [
            "first second of minute",
            "first minute of hour",
            "first hour of day",
            "first day of month",
            "first day of next month",
            "last day of month",
            "first day of year",
            "first day of next year",
            "last day of year"
          ]
        },
        "applyTruncationLast": {
          "type": "boolean",
          "description": "Option for before / after / equalToDateTime.",
          "examples": [
            true
          ]
        },
        "expectedOffset": {
          "type": "integer",
          "description": "Option for before / after / equalToDateTime.",
          "examples": [
            1
          ]
        },
        "expectedOffsetUnit": {
          "type": "string",
          "description": "Option for before / after / equalToDateTime: the unit of expectedOffset. One of the examples, in any case.",
          "examples": [
            "SECONDS",
            "MINUTES",
            "HOURS",
            "DAYS",
            "MONTHS",
            "YEARS"
          ],
          "pattern": "^(?:[Ss][Ee][Cc][Oo][Nn][Dd][Ss]|[Mm][Ii][Nn][Uu][Tt][Ee][Ss]|[Hh][Oo][Uu][Rr][Ss]|[Dd][Aa][Yy][Ss]|[Mm][Oo][Nn][Tt][Hh][Ss]|[Yy][Ee][Aa][Rr][Ss])$"
        },
        "anything": {
          "type": "string",
          "description": "Matches any value. The operand string is ignored.",
          "examples": [
            "anything"
          ]
        },
        "absent": {
          "description": "The element must be absent. Canonically written as true; the operand value is ignored.",
          "examples": [
            true
          ]
        },
        "and": {
          "type": "array",
          "minItems": 2,
          "items": {
            "$ref": "#/definitions/stringValueMatcher"
          },
          "description": "All nested matchers must match.",
          "examples": [
            [
              {
                "contains": "order"
              },
              {
                "doesNotContain": "test"
              }
            ]
          ]
        },
        "or": {
          "type": "array",
          "minItems": 2,
          "items": {
            "$ref": "#/definitions/stringValueMatcher"
          },
          "description": "At least one nested matcher must match.",
          "examples": [
            [
              {
                "equalTo": "GB"
              },
              {
                "equalTo": "IE"
              }
            ]
          ]
        },
        "not": {
          "$ref": "#/definitions/stringValueMatcher",
          "description": "The nested matcher must not match.",
          "examples": [
            {
              "contains": "test"
            }
          ]
        },
        "matchesPathTemplate": {
          "type": "string",
          "description": "RFC 6570 path template match (string-value sub-matcher form).",
          "examples": [
            "/orders/{orderId}"
          ]
        },
        "matchesXml": {
          "type": "string",
          "description": "Traffic Parrot: XML match where element/attribute values may be regular expressions.",
          "examples": [
            "<order><id>42</id></order>"
          ]
        },
        "matchesJson": {
          "description": "Traffic Parrot: JSON match where values may be regular expressions. Inline JSON value or a string containing JSON.",
          "type": [
            "string",
            "object",
            "array"
          ],
          "examples": [
            {
              "orderId": 42
            }
          ]
        },
        "matchesGraphQL": {
          "description": "Traffic Parrot: GraphQL query match. A query string or an {\"operationName\": ..., \"variables\": ...} object.",
          "type": [
            "string",
            "object"
          ],
          "examples": [
            "{ order(id: 42) { status } }",
            {
              "operationName": "GetOrder",
              "variables": {
                "id": 42
              }
            }
          ]
        },
        "matchesSwiftField": {
          "description": "Traffic Parrot: match one field of a SWIFT MT message.",
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "examples": [
                "20"
              ],
              "description": "SWIFT MT field tag to read, for example 20 (transaction reference)."
            },
            "matches": {
              "type": "string",
              "examples": [
                "REF[0-9]+"
              ],
              "description": "Regular expression the field's value must match."
            }
          },
          "required": [
            "field",
            "matches"
          ],
          "additionalProperties": false,
          "examples": [
            {
              "field": "20",
              "matches": "REF[0-9]+"
            }
          ]
        },
        "matchesFixField": {
          "description": "Traffic Parrot: match one field of a FIX message.",
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "examples": [
                "35"
              ],
              "description": "FIX tag number to read, for example 35 (MsgType)."
            },
            "matches": {
              "type": "string",
              "examples": [
                "D"
              ],
              "description": "Regular expression the tag's value must match."
            }
          },
          "required": [
            "field",
            "matches"
          ],
          "additionalProperties": false,
          "examples": [
            {
              "field": "35",
              "matches": "D"
            }
          ]
        },
        "matchesCicsField": {
          "description": "Traffic Parrot: match one field of a CICS bridge request (MQFMT_CICS) by its path in the request's JSON view (MQCIH.TransactionId, ProgramName, COMMAREA.ACCOUNT-NO, COMMAREA.TXN-ENTRY[0].TXN-AMOUNT with 0-based indices), with exactly one of equalTo, matches (a whole-value regular expression), greaterThan, greaterThanOrEqualTo, lessThan or lessThanOrEqualTo. Numbers compare as numbers.",
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "examples": [
                "COMMAREA.ACCOUNT-NO"
              ],
              "description": "Path from the root of the request view, names exactly as written: ProgramName, COMMAREA.<copybook field>, MQCIH.<header field> or MQMD.UserIdentifier. A [n] after a name is a 0-based table index, as in COMMAREA.TXN-ENTRY[1].TXN-AMOUNT."
            },
            "equalTo": {
              "type": [
                "string",
                "number"
              ],
              "examples": [
                "1234567890"
              ],
              "description": "The field's value equals this."
            },
            "matches": {
              "type": "string",
              "examples": [
                "[0-9]{10}"
              ],
              "description": "Regular expression the field's value must match."
            },
            "greaterThan": {
              "type": [
                "string",
                "number"
              ],
              "examples": [
                100
              ],
              "description": "The field's numeric value is greater than this."
            },
            "greaterThanOrEqualTo": {
              "type": [
                "string",
                "number"
              ],
              "examples": [
                100
              ],
              "description": "The field's numeric value is greater than or equal to this."
            },
            "lessThan": {
              "type": [
                "string",
                "number"
              ],
              "examples": [
                1000
              ],
              "description": "The field's numeric value is less than this."
            },
            "lessThanOrEqualTo": {
              "type": [
                "string",
                "number"
              ],
              "examples": [
                1000
              ],
              "description": "The field's numeric value is less than or equal to this."
            }
          },
          "required": [
            "field"
          ],
          "oneOf": [
            {
              "required": [
                "equalTo"
              ]
            },
            {
              "required": [
                "matches"
              ]
            },
            {
              "required": [
                "greaterThan"
              ]
            },
            {
              "required": [
                "greaterThanOrEqualTo"
              ]
            },
            {
              "required": [
                "lessThan"
              ]
            },
            {
              "required": [
                "lessThanOrEqualTo"
              ]
            }
          ],
          "additionalProperties": false,
          "examples": [
            {
              "field": "COMMAREA.ACCOUNT-NO",
              "equalTo": "1234567890"
            }
          ]
        }
      },
      "additionalProperties": false,
      "anyOf": [
        {
          "required": [
            "equalTo"
          ]
        },
        {
          "required": [
            "equalToJson"
          ]
        },
        {
          "required": [
            "matchesJsonSchema"
          ]
        },
        {
          "required": [
            "equalToXml"
          ]
        },
        {
          "required": [
            "matchesJsonPath"
          ]
        },
        {
          "required": [
            "matchesXPath"
          ]
        },
        {
          "required": [
            "contains"
          ]
        },
        {
          "required": [
            "doesNotContain"
          ]
        },
        {
          "required": [
            "matches"
          ]
        },
        {
          "required": [
            "doesNotMatch"
          ]
        },
        {
          "required": [
            "before"
          ]
        },
        {
          "required": [
            "after"
          ]
        },
        {
          "required": [
            "equalToDateTime"
          ]
        },
        {
          "required": [
            "anything"
          ]
        },
        {
          "required": [
            "absent"
          ]
        },
        {
          "required": [
            "and"
          ]
        },
        {
          "required": [
            "or"
          ]
        },
        {
          "required": [
            "not"
          ]
        },
        {
          "required": [
            "matchesPathTemplate"
          ]
        },
        {
          "required": [
            "matchesXml"
          ]
        },
        {
          "required": [
            "matchesJson"
          ]
        },
        {
          "required": [
            "matchesGraphQL"
          ]
        },
        {
          "required": [
            "matchesSwiftField"
          ]
        },
        {
          "required": [
            "matchesFixField"
          ]
        },
        {
          "required": [
            "matchesCicsField"
          ]
        }
      ],
      "allOf": [
        {
          "if": {
            "anyOf": [
              {
                "required": [
                  "before"
                ]
              },
              {
                "required": [
                  "after"
                ]
              },
              {
                "required": [
                  "equalToDateTime"
                ]
              }
            ]
          },
          "then": {
            "properties": {
              "truncateExpected": {
                "pattern": "^(?:[Ff][Ii][Rr][Ss][Tt][ _][Ss][Ee][Cc][Oo][Nn][Dd][ _][Oo][Ff][ _][Mm][Ii][Nn][Uu][Tt][Ee]|[Ff][Ii][Rr][Ss][Tt][ _][Mm][Ii][Nn][Uu][Tt][Ee][ _][Oo][Ff][ _][Hh][Oo][Uu][Rr]|[Ff][Ii][Rr][Ss][Tt][ _][Hh][Oo][Uu][Rr][ _][Oo][Ff][ _][Dd][Aa][Yy]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Mm][Oo][Nn][Tt][Hh]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Nn][Ee][Xx][Tt][ _][Mm][Oo][Nn][Tt][Hh]|[Ll][Aa][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Mm][Oo][Nn][Tt][Hh]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Yy][Ee][Aa][Rr]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Nn][Ee][Xx][Tt][ _][Yy][Ee][Aa][Rr]|[Ll][Aa][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Yy][Ee][Aa][Rr])$"
              },
              "truncateActual": {
                "pattern": "^(?:[Ff][Ii][Rr][Ss][Tt][ _][Ss][Ee][Cc][Oo][Nn][Dd][ _][Oo][Ff][ _][Mm][Ii][Nn][Uu][Tt][Ee]|[Ff][Ii][Rr][Ss][Tt][ _][Mm][Ii][Nn][Uu][Tt][Ee][ _][Oo][Ff][ _][Hh][Oo][Uu][Rr]|[Ff][Ii][Rr][Ss][Tt][ _][Hh][Oo][Uu][Rr][ _][Oo][Ff][ _][Dd][Aa][Yy]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Mm][Oo][Nn][Tt][Hh]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Nn][Ee][Xx][Tt][ _][Mm][Oo][Nn][Tt][Hh]|[Ll][Aa][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Mm][Oo][Nn][Tt][Hh]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Yy][Ee][Aa][Rr]|[Ff][Ii][Rr][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Nn][Ee][Xx][Tt][ _][Yy][Ee][Aa][Rr]|[Ll][Aa][Ss][Tt][ _][Dd][Aa][Yy][ _][Oo][Ff][ _][Yy][Ee][Aa][Rr])$"
              }
            }
          }
        },
        {
          "if": {
            "required": [
              "equalToXml"
            ]
          },
          "then": {
            "properties": {
              "exemptedComparisons": {
                "items": {
                  "enum": [
                    "XML_VERSION",
                    "XML_STANDALONE",
                    "XML_ENCODING",
                    "HAS_DOCTYPE_DECLARATION",
                    "DOCTYPE_NAME",
                    "DOCTYPE_PUBLIC_ID",
                    "DOCTYPE_SYSTEM_ID",
                    "SCHEMA_LOCATION",
                    "NO_NAMESPACE_SCHEMA_LOCATION",
                    "NODE_TYPE",
                    "NAMESPACE_PREFIX",
                    "NAMESPACE_URI",
                    "TEXT_VALUE",
                    "PROCESSING_INSTRUCTION_TARGET",
                    "PROCESSING_INSTRUCTION_DATA",
                    "ELEMENT_TAG_NAME",
                    "ATTR_VALUE_EXPLICITLY_SPECIFIED",
                    "ELEMENT_NUM_ATTRIBUTES",
                    "ATTR_VALUE",
                    "CHILD_NODELIST_LENGTH",
                    "CHILD_NODELIST_SEQUENCE",
                    "CHILD_LOOKUP",
                    "ATTR_NAME_LOOKUP"
                  ]
                }
              }
            }
          }
        }
      ]
    }
  }
}
