Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add exhaustive checks, use answerArray for arrays #7244

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

KenLSM
Copy link
Contributor

@KenLSM KenLSM commented Apr 4, 2024

Problem

Following the specs for sample field responses, we should return answer: string for single values, and answerArray: [] for multiple values.

Solution

Switch to use answerArray for checkbox and table

Breaking Changes

  • No - this PR is backwards compatible

Tests

Regression

  • Create a form
  • Open the form
  • Add Checkbox Field
  • Go to /api/v3/forms/:formid/sample-submission
  • Ensure that page returns JSON value
  • Ensure that checkbox field returns []-like

@KenLSM KenLSM marked this pull request as ready for review April 4, 2024 07:31
@KenLSM KenLSM merged commit a6ae1e1 into develop Apr 4, 2024
40 checks passed
@KenLSM KenLSM deleted the fix/sample-submission-integration branch April 4, 2024 09:44
@KenLSM KenLSM mentioned this pull request Apr 8, 2024
9 tasks
@KenLSM KenLSM mentioned this pull request Apr 22, 2024
45 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants