mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +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
|
header: Union[None, str] = None
|
||||||
|
|
||||||
type: Literal['no-auth', 'api-key']
|
type: Literal['no-auth', 'api-key']
|
||||||
config: Optional[Config]
|
config: Optional[Config] = None
|
||||||
|
|
||||||
@field_validator('config', mode='before')
|
@field_validator('config', mode='before')
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -52,6 +52,6 @@ class HttpRequestNodeData(BaseNodeData):
|
||||||
authorization: Authorization
|
authorization: Authorization
|
||||||
headers: str
|
headers: str
|
||||||
params: str
|
params: str
|
||||||
body: Optional[Body]
|
body: Optional[Body] = None
|
||||||
timeout: Optional[Timeout] = None
|
timeout: Optional[Timeout] = None
|
||||||
mask_authorization_header: Optional[bool] = True
|
mask_authorization_header: Optional[bool] = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user