Forum Discussion

UNIZETO_TECHNOL_2's avatar
UNIZETO_TECHNOL_2
Occasional Contributor
14 years ago

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
No RepliesBe the first to reply