question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggest correct properties for misspellings

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
jonathanglasmeyercommented, Apr 8, 2016
1reaction
kentcdoddscommented, Apr 8, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found