From 144661b05f6463a93abc9b7838df4777eb6dbe55 Mon Sep 17 00:00:00 2001 From: Rogerio Angeliski Date: Wed, 26 Feb 2025 20:16:47 -0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Patrick Jungermann Signed-off-by: Rogerio Angeliski --- .changeset/ten-impalas-hope.md | 4 ++-- plugins/events-backend/src/service/http/errors.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.changeset/ten-impalas-hope.md b/.changeset/ten-impalas-hope.md index b770b15c6b..5bbdea7a11 100644 --- a/.changeset/ten-impalas-hope.md +++ b/.changeset/ten-impalas-hope.md @@ -1,6 +1,6 @@ --- -'@backstage/plugin-events-backend': minor -'@backstage/plugin-events-node': minor +'@backstage/plugin-events-backend': patch +'@backstage/plugin-events-node': patch --- add `addHttpPostBodyParser` to events extension to allow body parse customization. This feature will enhance flexibility in handling HTTP POST requests in event-related operations. diff --git a/plugins/events-backend/src/service/http/errors.ts b/plugins/events-backend/src/service/http/errors.ts index b078f0d40e..583f1a6b9b 100644 --- a/plugins/events-backend/src/service/http/errors.ts +++ b/plugins/events-backend/src/service/http/errors.ts @@ -32,7 +32,7 @@ export class UnsupportedMediaTypeError extends CustomErrorBase { super( `Unsupported media type: ${ mediaType ?? 'unknown' - }. You need to provide a custom body parser for this media type using events extension.`, + }. You need to provide a custom body parser for this media type using the EventsExtensionPoint.`, ); } }