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.