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

null value check not iterating correctly in arrays #80

Open
dreaganluna opened this issue Apr 27, 2020 · 0 comments
Open

null value check not iterating correctly in arrays #80

dreaganluna opened this issue Apr 27, 2020 · 0 comments

Comments

@dreaganluna
Copy link

In any version >5.0.0, the question mark that is used for null values does not iterate correctly in arrays.
By that I mean that this will only work for the first item in an array.

Mapping example:

const mapping = {
	"source[].some": "destination[].some",
	"source[].empty": "destination[].empty?"
};

Result in 5.0.0 or less:

{
	"destination": [
		{
			"some": "value",
			"empty": null
		},
		{
			"some": "value",
			"empty": null
		},
		{
			"some": "value",
			"empty": null
		}
	]
}

Result in >5.0.0:

{
	"destination": [
		{
			"some": "value",
			"empty": null
		},
		{
			"some": "value"
		},
		{
			"some": "value"
		}
	]
}
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

No branches or pull requests

1 participant