Skip to content

Find full path to nested errors#206

Merged
hueniverse merged 1 commit intohapijs:masterfrom
joeybaker:arrayPath
Apr 22, 2014
Merged

Find full path to nested errors#206
hueniverse merged 1 commit intohapijs:masterfrom
joeybaker:arrayPath

Conversation

@joeybaker
Copy link
Contributor

I'm not at all sure if this is the cleanest implementation, but it does do the job. I'd happy take a cleaner implementation that doesn't require recursion.

Fixes #202

@hueniverse
Copy link
Contributor

Given recent changes, I'm going to incorporate #202 into the fixes planned.

@hueniverse hueniverse closed this Apr 17, 2014
@joeybaker
Copy link
Contributor Author

Fair enough, thanks!

@hueniverse hueniverse reopened this Apr 22, 2014
hueniverse pushed a commit that referenced this pull request Apr 22, 2014
Find full path to nested errors
@hueniverse hueniverse merged commit bd3ae0a into hapijs:master Apr 22, 2014
@hueniverse hueniverse added this to the 4.0.0 milestone Apr 22, 2014
@hueniverse hueniverse self-assigned this Apr 22, 2014
@joeybaker joeybaker deleted the arrayPath branch April 22, 2014 23:02
hueniverse pushed a commit that referenced this pull request Apr 22, 2014
@hueniverse
Copy link
Contributor

I had to undo most of it. The problem is that this solves a very narrow problem and only when the reason is flat. Need to go deeper in order to retail the full chain of paths, but I think this is not bad.

@joeybaker
Copy link
Contributor Author

I was pretty unsure about that – thanks for pushing this through!

@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

array() should set a specific detail.path

2 participants