Skip to content

Commit bc4a099

Browse files
committed
validate null field
1 parent 51b9afb commit bc4a099

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scene_common/src/scene_common/rest_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def _separateFiles(self, data, fields):
269269
"""Separates file fields from data dictionary for requests library"""
270270
files = None
271271
for fileField in fields:
272-
if fileField in data and not isinstance(data[fileField], str):
272+
if fileField in data and data[fileField] is not None and not isinstance(data[fileField], str):
273273
data = data.copy()
274274
files = {fileField: data[fileField]}
275275
data.pop(fileField)

tests/api/scenarios/asset_api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
"expected_status": {
255255
"status_code": 200
256256
},
257-
"expected_body": {
257+
"validate": {
258258
"model_3d": null
259259
}
260260
}

0 commit comments

Comments
 (0)