Property with numeric subkey will be incorrectly converted
Closed this issue · 4 comments
davidkarlsen commented
Given two properties:
authenticateStep.1.user = user
authenticateStep.1.pw = X
it will be converted to:
authenticateStep:
- null
- pw: X
user: user
while it should be:
authenticateStep:
1:
pw: X
user: user
The problem is that TreeBuilder.applyArrayNotation is applied unconditionally as array indexes. This should probably be configurable - in my case they are not array indexes, but keys.
davidkarlsen commented
@szpak Any chance you could push out a release containing this?
szpak commented
You need to make a pull request first - https://help.github.com/articles/using-pull-requests/
davidkarlsen commented