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 brackets for array indexes on path formatting #29

Open
gillchristian opened this issue Jun 3, 2020 · 1 comment
Open

Use brackets for array indexes on path formatting #29

gillchristian opened this issue Jun 3, 2020 · 1 comment

Comments

@gillchristian
Copy link
Owner

gillchristian commented Jun 3, 2020

Format array indexes with brackets in the path:

Actual: data.0.name

Expected: data[0].name

See #3 (comment) for a potential implementation (might be outdated)

@osdiab
Copy link
Contributor

osdiab commented Jun 3, 2020

I prefer data[0].name since it mirrors how you would express it in JS/TypeScript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants