-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels