nimblehq / nimble-survey-web

Nimble Survey API for Mobile Challenge and Certification
0 stars 3 forks source link

Fix: Wrong validating logic for the submit survey responses API #80

Closed suho closed 1 year ago

suho commented 1 year ago

Issue

When the mobile app submits survey responses with a different order of questions compared to the order from the survey detail API, the response will return the error "Questions is invalid"

Screenshot 2023-01-13 at 11 45 57

Expected

The API should return an empty response with a 201 status code.

Screenshot 2023-01-13 at 11 47 09

Steps to reproduce

  1. Change the order of the question list in the request body.
  2. Send a request to the API.