From 1969c7728044aff6d02c81863588e1e93297237e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Wed, 11 Dec 2024 12:12:00 +0100 Subject: [PATCH] fx --- docs/schema/V1/swagger.verified.json | 5 ++++- .../Search/SearchDialogTransmissionEndpoint.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/schema/V1/swagger.verified.json b/docs/schema/V1/swagger.verified.json index a58e21b95..e617e216e 100644 --- a/docs/schema/V1/swagger.verified.json +++ b/docs/schema/V1/swagger.verified.json @@ -6747,7 +6747,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/V1ServiceOwnerDialogTransmissionsQueriesSearch_Transmission" + "items": { + "$ref": "#/components/schemas/V1ServiceOwnerDialogTransmissionsQueriesSearch_Transmission" + }, + "type": "array" } } }, diff --git a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs index 06fb1aede..5af04f663 100644 --- a/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs +++ b/src/Digdir.Domain.Dialogporten.WebApi/Endpoints/V1/ServiceOwner/DialogTransmissions/Search/SearchDialogTransmissionEndpoint.cs @@ -22,7 +22,7 @@ public override void Configure() Policies(AuthorizationPolicy.ServiceProvider); Group(); - Description(b => b.ProducesOneOf( + Description(b => b.ProducesOneOf>( StatusCodes.Status200OK, StatusCodes.Status404NotFound, StatusCodes.Status410Gone));