Browser
Chrome
Area
Post Ride and Post Intent Forms
Steps to reproduce
Post Ride Form :
- Start the project locally.
- Log in using Dev Login.
- Go to the Post Ride page.
- Fill all required ride details like direction, destination, departure time, total seats, and fare per head.
- Leave the optional Notes field empty.
- Submit the form.
Post Intent Form :
- Go to the Post Intent page.
- Fill all required intent details like direction, destination, earliest time, and latest time.
- Leave the optional Max Fare field empty.
- Submit the form.
Expected behavior
The form should be posted successfully because these fields are optional.
What actually happened
The request fails with a validation error.
Posting a ride works when a value such as "hi" is entered in the Notes field , but fails when the optional Notes field is left empty.
The same optional-field pattern exists in Post Intent, where empty Max Fare is sent as null even though the backend treats it as optional.
Logs / Screenshots
No response
Browser
Chrome
Area
Post Ride and Post Intent Forms
Steps to reproduce
Post Ride Form :
Post Intent Form :
Expected behavior
The form should be posted successfully because these fields are optional.
What actually happened
The request fails with a validation error.
Posting a ride works when a value such as "hi" is entered in the Notes field , but fails when the optional Notes field is left empty.
The same optional-field pattern exists in Post Intent, where empty Max Fare is sent as null even though the backend treats it as optional.
Logs / Screenshots
No response