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

Need to clarify / explain how options merging for arrays works #300

Open
jobara opened this issue Aug 1, 2024 · 0 comments
Open

Need to clarify / explain how options merging for arrays works #300

jobara opened this issue Aug 1, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@jobara
Copy link
Member

jobara commented Aug 1, 2024

The documentation for options merging doesn't describe the default behaviour for how arrays are merged.

Currently it seems that arrays will merge by position, that is merging [1, 2, 3] onto ["a", "b", "c", "d"] would produce [1, 2, 3, "d"]. It also appears that if you want a shorter array that the original you'd need to specify a merge policy of "replace" for that option path.

see channel discussion: https://botbot.me/freenode/fluid-work/2017-07-04/?msg=88145239&page=1.

Additional context or notes

Originally filed as FLUID-6164 by @jobara on July 4, 2017.

@jobara jobara added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant