Skip to content

refactor: migrate web human_input_form from reqparse to Pydantic BaseModel#34859

Merged
asukaminato0721 merged 1 commit intolanggenius:mainfrom
ai-hpc:refactor/migrate-web-human-input-form-to-pydantic
Apr 9, 2026
Merged

refactor: migrate web human_input_form from reqparse to Pydantic BaseModel#34859
asukaminato0721 merged 1 commit intolanggenius:mainfrom
ai-hpc:refactor/migrate-web-human-input-form-to-pydantic

Conversation

@ai-hpc
Copy link
Copy Markdown
Contributor

@ai-hpc ai-hpc commented Apr 9, 2026

Fixes #28015

Summary

Replace reqparse.RequestParser with Pydantic BaseModel in the web human input form submission endpoint. Adds HumanInputFormSubmitPayload model with inputs and action fields, aligning with the codebase's ongoing migration to Pydantic for request validation.

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint and make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

@ai-hpc ai-hpc requested a review from QuantumGhost as a code owner April 9, 2026 14:47
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. refactor labels Apr 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

Pyrefly Diff

No changes detected.

@asukaminato0721 asukaminato0721 added this pull request to the merge queue Apr 9, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 9, 2026
Merged via the queue into langgenius:main with commit ab3b305 Apr 9, 2026
27 checks passed
HanqingZ pushed a commit to HanqingZ/dify that referenced this pull request Apr 23, 2026
…Model (langgenius#34859)

Co-authored-by: ai-hpc <ai-hpc@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer refactor size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

api.model to BaseModel

2 participants