fix: optional parameter missing default value None in http request node (#5413)

This commit is contained in:
takatost 2024-06-20 11:07:01 +08:00 committed by GitHub
parent 2328ed8ffa
commit a88aa20824
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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