mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-24 00:53:47 +08:00
fix #1174: pydantic validation error when body is None
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user