AnsweredAssumed Answered

Handling JSON Mandatory elements inside optional Array.

Question asked by naga.suvvada on Nov 12, 2018
Latest reply on Nov 14, 2018 by Vinay Nagariya

Hi Team,


I am working on one of the stub in which i need to handle below cases. Please suggest how to handle this type of scenarios.


  • Optional array(repetitive) is there, if optional array is not passing, success response should sent.
  • If Optional array is passing, few elements inside optional array are mandatory. that needs to validated
  • Passing mandatory and optional fields----Success Response.
  • Passing mandatory fields , optional array without mandatory fields----Bad Request.