Suggest correct properties for misspellings
See original GitHub issueI don’t think Joi does this by default. Would have to think about a way to go forward here. Maybe catch the joi error, parse if it is of the type object.allowUnknown
and then present correct keys for the given path
.
Context: an joi error object for an invalid property looks like Object{message:"\"fileName\" is not allowed",path:"fileName",type:"object.allowUnknown",context:#Object#}
.
Something like that. 😃
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Quickly make a spelling correction in Word
A quick way to correct a misspelled word in Microsoft Word is to right-click on the word that has a red wavy underline....
Read more >How to Optimize for Misspelled Keywords - SEO PowerSuite
To use the typo generator click 'Suggest' and select 'Misspelled words' as the keyword research method. The typo generator creates misspellings in 4 ......
Read more >Spelling Mistakes | Overview, Tips & Examples - Study.com
While correct spelling is not considered a predictor of intelligence, one can come off as being less intelligent due to errors in spelling....
Read more >Use VoiceOver to correct misspelled words on Mac
Use VoiceOver to correct misspelled words on Mac. Many macOS apps, such as TextEdit and Mail, can identify misspelled words as you type,...
Read more >Offer Relevant Autocomplete Suggestions for Closely ...
Anticipating common misspellings within autocomplete and suggesting the correct spelling eliminates any query refactoring, allowing users to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I opened an issue over there: https://github.com/hapijs/joi/issues/861#issuecomment-207622309
I think it’d be better to see if we can get this supported in Joi. I’m sure they’d like to have this feature.