You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checkbox values for the methods[] field are not being submitted correctly in the FastAPI form. Since checkboxes allow multiple selections, the form should send an array of selected values, but currently, only a single value or none is received.
Steps to Reproduce
Open the form in the browser.
Select multiple checkboxes for request methods (e.g., GET, POST).
Submit the form.
Check FastAPI request data—only one method is received instead of an array.
Expected Behavior
The form should send an array of selected methods to FastAPI, ensuring all checked values are properly submitted.
Proposed Fix-
Modify the frontend to collect multiple selected checkboxes correctly before form submission.
Update JavaScript validation to ensure at least one checkbox is selected.
Ensure FastAPI correctly receives and processes the list of methods.
The text was updated successfully, but these errors were encountered:
Checkbox values for the methods[] field are not being submitted correctly in the FastAPI form. Since checkboxes allow multiple selections, the form should send an array of selected values, but currently, only a single value or none is received.
Steps to Reproduce
Expected Behavior
The form should send an array of selected methods to FastAPI, ensuring all checked values are properly submitted.
Proposed Fix-
The text was updated successfully, but these errors were encountered: