fix #1174: pydantic validation error when body is None

This commit is contained in:
debugtalk
2022-04-17 15:04:14 +08:00
parent 9a3710f3cb
commit 1572aced95
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
## 3.1.9 (2022-04-17)
- fix #1174: pydantic validation error when body is None
- fix #1209: only convert jmespath path for some fields in white list
- fix #1233: parse upload info with session variables
- fix #1246: catch exceptions when getting socket address failed

View File

@@ -133,7 +133,7 @@ class ResponseData(BaseModel):
cookies: Cookies
encoding: Union[Text, None] = None
content_type: Text
body: Union[Text, bytes, List, Dict]
body: Union[Text, bytes, List, Dict, None]
class ReqRespData(BaseModel):
@@ -161,7 +161,7 @@ class StepData(BaseModel):
data: Union[SessionData, List['StepData']] = None
export_vars: VariablesMapping = {}
StepData.update_forward_refs()