OpenAPI validation errors must be provided as a JSON response

Created on 29 August 2024, 4 months ago
Updated 20 September 2024, 3 months ago

Overview

See #3454173-45: Media Library integration (includes introducing a new main content renderer/`_wrapper_format`) β†’ for how πŸ“Œ Create an Open API spec for the current mock HTTP responses Fixed actually caused the DX to regress rather than improve in some scenarios.

(In this case: an empty Ajax response was sent, with no visible error β€” the error itself was logged. This is very non-obvious 😬)

Proposed resolution

Ensure that

throw new ValidationFailed($message, $e->getCode(), $e);

… actually results in an appropriate error response being generated.

User interface changes

None … except in case of fatal errors, then you get an actually-useful-to-report error message:

πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024