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

Use JSON.Stringify in someOf helper #1291

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

255kb
Copy link
Member

@255kb 255kb commented Jan 29, 2024

Use JSON.Stringify in someOf helper instead of custom thing as it would return an array with one empty string when there is no element instead of just an empty array. Closes #1289

Technical implementation details

Checklist

  • data migration added (@mockoon/commons)
  • data migration automated tests added (@mockoon/commons)
  • CLI automated tests added (@mockoon/cli)
  • desktop automated tests added (@mockoon/desktop)

Closes #{issue_number}

Use JSON.Stringify in `someOf` helper instead of custom thing as it would return an array with one empty string when there is no element instead of just an empty array.
Closes #1289
@255kb 255kb merged commit 736bc13 into main Jan 29, 2024
20 checks passed
@255kb 255kb deleted the bugfix/1289-someof-stringify branch January 29, 2024 10:00
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.

someOf helper last param is not stringifying correctly empty arrays
1 participant