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

JSONError should have structured way to add prefixes #26

Closed
lilyball opened this issue Nov 2, 2018 · 0 comments
Closed

JSONError should have structured way to add prefixes #26

lilyball opened this issue Nov 2, 2018 · 0 comments

Comments

@lilyball
Copy link
Collaborator

lilyball commented Nov 2, 2018

There are existing methods for doing parsing of objects and arrays that build up a full path on error. But if the user isn't using these particular methods, we lose that path. We should probably expose a way for the user to provide the path themselves. We'll probably want a more structured mechanism than the existing private withPrefix(_: String) method (e.g. perhaps we take an enum that has cases for object key vs array index).

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