MLH-Fellowship / orientation-project-python-24.FAL.A

Orientation Project (Python for 24.FAL.A)
0 stars 10 forks source link

#11 Spell check on content added by user #51

Closed oduyemi closed 1 month ago

oduyemi commented 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.

awilkescom commented 1 month ago

Hey @oduyemi can you update to the latest version and see if this resolves some of the conflicts? Thanks!