mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix: optional parameter missing default value None in http request node (#5413)
This commit is contained in:
parent
2328ed8ffa
commit
a88aa20824
|
@ -22,7 +22,7 @@ class HttpRequestNodeData(BaseNodeData):
|
|||
header: Union[None, str] = None
|
||||
|
||||
type: Literal['no-auth', 'api-key']
|
||||
config: Optional[Config]
|
||||
config: Optional[Config] = None
|
||||
|
||||
@field_validator('config', mode='before')
|
||||
@classmethod
|
||||
|
@ -52,6 +52,6 @@ class HttpRequestNodeData(BaseNodeData):
|
|||
authorization: Authorization
|
||||
headers: str
|
||||
params: str
|
||||
body: Optional[Body]
|
||||
body: Optional[Body] = None
|
||||
timeout: Optional[Timeout] = None
|
||||
mask_authorization_header: Optional[bool] = True
|
||||
|
|
Loading…
Reference in New Issue
Block a user