OpenAPI validation errors must be provided as a JSON response

Created on 29 August 2024, 21 days ago
Updated 30 August 2024, 20 days 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.

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Wim Leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

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

Comments & Activities

Production build 0.71.5 2024