0001-views-improve-jsonchema-validation-error-message-383.patch
passerelle/views.py | ||
---|---|---|
363 | 363 |
try: |
364 | 364 |
validate(data, json_schema) |
365 | 365 |
except ValidationError as e: |
366 |
raise APIError(e.message, http_status=400) |
|
366 |
error_msg = '%s : %s' % ('/'.join(e.path), e.message) |
|
367 |
raise APIError(error_msg, http_status=400) |
|
367 | 368 |
d['post_data'] = data |
368 | 369 | |
369 | 370 |
return d |
370 |
- |