UNIZETO_TECHNOL_2
14 years agoOccasional Contributor
Request schema validation in mockService
I want to check if a request that comes to my mockService is proper to its schema.
How can i validate a request against its schema from GroovyScript ?
I need to get the same output as the function "validate" from the mouse right click menu in XML Source view, output like:
line 16: Invalid decimal value: unexpected char '63'
line 20: Invalid date value: ?
and so on...
All i have is the mockRequest variable
How can i validate a request against its schema from GroovyScript ?
I need to get the same output as the function "validate" from the mouse right click menu in XML Source view, output like:
line 16: Invalid decimal value: unexpected char '63'
line 20: Invalid date value: ?
and so on...
All i have is the mockRequest variable