Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

422 Unprocessable Entity when submitting a single item for a multiple select input #151

Closed
hillstub opened this issue Jan 14, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@hillstub
Copy link

Kudos on making such a nice library!!

I just came across something that I think is a bug.

When I make a form with e.g.

class SelectForm(BaseModel):
    orfs: list[str] = Field(json_schema_extra={'search_url': '/api/loci/search'})

I'm getting the 422 error when submitting the form and I've only selected one item. When I'm selecting multiple items it goes through.
This also happens with the demo page on https://fastui-demo.onrender.com/forms/select

@schatimo
Copy link
Contributor

Duplicate to #122.

@samuelcolvin samuelcolvin added the duplicate This issue or pull request already exists label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants