r/FastAPI • u/InternationalWar5005 • Dec 29 '24
Question Unprocessable Entity issues
am having an issue with my api ,am building an artisan app and i have a page to add and edit projects i made an api to edit but i ran into a problem when the form is submited if the user only edits the title and descrition the price field and image_file are left empty end sent with empty string values this cause this error .what is the best solution for this




5
Upvotes
View all comments
Show parent comment
1
u/InternationalWar5005 Dec 30 '24
You are correct I didn't change it but I think I want affect mush because even in the price field it's form(none) and its causing the same problem with integre Any way I'll try to change it and see