Skip to content

Commit 735b9a8

Browse files
authored
fix: json formatted resource should not get xml errors #7287 (#7297)
1 parent d08be0e commit 735b9a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

EventListener/ErrorListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ private function getFormatOperation(?string $format): string
202202
'jsonproblem' => '_api_errors_problem',
203203
'jsonld' => '_api_errors_hydra',
204204
'jsonapi' => '_api_errors_jsonapi',
205+
'xml' => '_api_errors_xml',
205206
'html' => '_api_errors_problem', // This will be intercepted by the SwaggerUiProvider
206207
default => '_api_errors_problem',
207208
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy