mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 04:15:24 -04:00
[DOCS]: url and upload_file_id do not have a strong dependency on transfer_method #194
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zhangxuhe1 on GitHub (Jul 21, 2025).
Type of Documentation Change
Error/Typo fix
Documentation Page URL or Path
https://github.com/langgenius/dify-docs/blob/main/en/openapi_workflow.json
Current Content
The current en/openapi_workflow.json does not seem to fully implement the constraint semantics of url and upload_file_id in the https://github.com/langgenius/dify/blob/main/web/app/components/develop/template/template_workflow.en.mdx document.
The original mdx document describes them as follows:
transfer_method(string) Transfer method,remote_urlfor image URL /local_filefor file uploadurl(string) Image URL (when the transfer method isremote_url)upload_file_id(string) Uploaded file ID, which must be obtained by uploading through the File Upload API in advance (when the transfer method islocal_file)However, oneOf in the JSON file seems to only implement "must provide url or upload_file_id", but does not establish a strong dependency with transfer_method:
Suggested Changes
I want to create a dependency between url and upload_file_id and transfer_method.
Reason for Change
Helps to align with the documentation description in https://github.com/langgenius/dify/blob/main/web/app/components/develop/template/template_workflow.en.mdx
Code of Conduct