Closed oduyemi closed 1 month ago
Closes #11 This pull request enhances the spellcheck function to improve input validation and error handling. Key changes include:
Added validation to ensure the request body is JSON:
[ { "before": "Hellq there", "after": "Hello there" } ]
Implemented checks for required fields in the input data.
Improved handling of spell.candidates() to avoid NoneType errors.
Structured the response to ensure JSON serializability, providing clear suggestions for misspelled words.
Hey @oduyemi can you update to the latest version and see if this resolves some of the conflicts? Thanks!
Closes #11 This pull request enhances the spellcheck function to improve input validation and error handling. Key changes include:
Added validation to ensure the request body is JSON:
[ { "before": "Hellq there", "after": "Hello there" } ]
Implemented checks for required fields in the input data.
Improved handling of spell.candidates() to avoid NoneType errors.
Structured the response to ensure JSON serializability, providing clear suggestions for misspelled words.