I\'m working within IBM Integration Bus and I found myslef in need of validation of the messages that I recive. Since IIB does not support any kind of validation in this regard,
One option is the swagger-request-validator. It lets you validate requests/responses against a Swagger / OpenAPI definition.
There are modules available for integrating with WireMock, Rest Assured, Pact etc., or you can use the validator directly.
Take a look at the example usages for code samples on how to use it.
I came across the below link in which JSON equivelent XML modeling was used to enable graphical mapping of a JSON message here. In the same manner, you can create an equivelent XML model and switch from JSON to XML domain then run validation using ResetContentDescriptor node. But, I am not sure about the performance. If were you, I would test and compare this solution to yours.