pallets-eco / pallets-eco/wtforms
Handling JSON and nested form data
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 409
- PR merge metrics
- No merged PRs in 30d
Description
I've attempted to use wtforms with JSON and nested FormField data, but it appears to be mostly unsupported. There are third party libraries such as wtforms-json which add support, but the code is quite dirty and of limited support.
This is a use case which I'd imagine is quite popular, as wtforms is arguably the best form validation library out there for Python.
Are there any plans to add support into the core for JSON? Could a core maintainer indicate whether such a feature request would be accepted? I'm happy to contribute time into a PR to make this happen.
EDIT: It seems that in 2.0 there has already been some preparations towards this, such as the addition of data into Form constructor.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the Form constructor's existing data support and the nested FormField behavior described in the issue, then compare the limitations of the linked wtforms-json library. Before implementation, clarify the core API and supported JSON and nested-data cases; done should mean agreed coverage is supported by the WTForms core with corresponding tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100