AnsweredAssumed Answered

what to do JSON validate body against Schema when no body

Question asked by sdetweil2 on Jul 15, 2015
Latest reply on Jul 16, 2015 by sdetweil2

we want to enable json document schema validation.  easy setup.(body in property). but some of the apis don't have a body,  so the validation step will fail

 

do I have to add another step to check for a property value and skip the validation step if the body isn't present?

 

this is a hand built vsm.

 

as a followup, is there a way from a jsr223 script to execute an assertion? (JSON validate).

 

I 'think' I can do this with the Assertion class.. just have to build one.

Outcomes