feat(workflow): enhance HTTP request node with curl debugging support

This commit is contained in:
wwq
2026-04-23 18:20:05 +08:00
parent 404ce9f9ba
commit 08a455f6b3

View File

@@ -132,22 +132,11 @@ class HttpErrorDefaultTemplate(BaseModel):
description="Default HTTP headers returned on error", description="Default HTTP headers returned on error",
) )
files: list = Field(
default_factory=list,
description="Default files list returned on error",
)
output: str = Field( output: str = Field(
default="SUCCESS", default="SUCCESS",
description="HTTP response body", description="HTTP response body",
) )
curl: str = Field(
default="",
description="Default curl command returned on error",
)
class HttpErrorHandleConfig(BaseModel): class HttpErrorHandleConfig(BaseModel):
method: HttpErrorHandle = Field( method: HttpErrorHandle = Field(
default=HttpErrorHandle.NONE, default=HttpErrorHandle.NONE,
@@ -282,11 +271,6 @@ class HttpRequestNodeOutput(BaseModel):
description="HTTP response body", description="HTTP response body",
) )
curl: str = Field(
default="",
description="Equivalent curl command for the HTTP request",
)
# files: list[File] = Field( # files: list[File] = Field(
# ... # ...
# ) # )