Skip to content

Commit ebbe0e8

Browse files
committed
remove useless lines
1 parent c11c23d commit ebbe0e8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/opengeodeweb_back/geode_functions.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,10 @@ def validate_request(request, schema):
243243
json_data = {}
244244

245245
try:
246-
print(f"{schema=}", flush=True)
247246
validate(instance=json_data, schema=schema)
248247
except ValidationError as e:
249248
flask.abort(400, f"Validation error: {e.message}")
250249

251-
required_keys = schema.get("required", [])
252-
for variable in required_keys:
253-
if variable not in json_data.keys():
254-
flask.abort(400, f"No {variable} sent")
255-
256250

257251
def geographic_coordinate_systems(geode_object: str):
258252
if is_3D(geode_object):

0 commit comments

Comments
 (0)