From 4a2aa31a9b4352e742ee89c46de705587e02ca04 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 13 Nov 2025 01:57:05 +0000 Subject: [PATCH] Fix nullable reference warnings: add null-forgiving operator to tag names Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com> --- .../FilterLists.Directory.Api/Endpoints.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/services/Directory/FilterLists.Directory.Api/Endpoints.cs b/services/Directory/FilterLists.Directory.Api/Endpoints.cs index ecf895764..04d3221b8 100644 --- a/services/Directory/FilterLists.Directory.Api/Endpoints.cs +++ b/services/Directory/FilterLists.Directory.Api/Endpoints.cs @@ -17,7 +17,7 @@ internal static void MapEndpoints(this WebApplication app) .Produces>() .AddOpenApiOperationTransformer((operation, context, ct) => { - operation.Tags = new HashSet { new(LanguagesTag.Name) }; + operation.Tags = new HashSet { new(LanguagesTag.Name!) }; operation.Summary = "Gets the languages targeted by the FilterLists."; operation.OperationId = nameof(GetLanguages); return Task.CompletedTask; @@ -30,7 +30,7 @@ internal static void MapEndpoints(this WebApplication app) .Produces>() .AddOpenApiOperationTransformer((operation, context, ct) => { - operation.Tags = new HashSet { new(LicensesTag.Name) }; + operation.Tags = new HashSet { new(LicensesTag.Name!) }; operation.Summary = "Gets the licenses applied to the FilterLists."; operation.OperationId = nameof(GetLicenses); return Task.CompletedTask; @@ -43,7 +43,7 @@ internal static void MapEndpoints(this WebApplication app) .Produces>() .AddOpenApiOperationTransformer((operation, context, ct) => { - operation.Tags = new HashSet { new(FilterListsTag.Name) }; + operation.Tags = new HashSet { new(FilterListsTag.Name!) }; operation.Summary = "Gets the FilterLists."; operation.OperationId = nameof(GetLists); return Task.CompletedTask; @@ -64,7 +64,7 @@ internal static void MapEndpoints(this WebApplication app) .Produces(StatusCodes.Status404NotFound) .AddOpenApiOperationTransformer((operation, context, ct) => { - operation.Tags = new HashSet { new(FilterListsTag.Name) }; + operation.Tags = new HashSet { new(FilterListsTag.Name!) }; operation.Summary = "Gets the details of the FilterList."; operation.OperationId = nameof(GetListDetails); operation.Parameters = @@ -88,7 +88,7 @@ internal static void MapEndpoints(this WebApplication app) .Produces>() .AddOpenApiOperationTransformer((operation, context, ct) => { - operation.Tags = new HashSet { new(MaintainersTag.Name) }; + operation.Tags = new HashSet { new(MaintainersTag.Name!) }; operation.Summary = "Gets the maintainers of the FilterLists."; operation.OperationId = nameof(GetMaintainers); return Task.CompletedTask; @@ -101,7 +101,7 @@ internal static void MapEndpoints(this WebApplication app) .Produces>() .AddOpenApiOperationTransformer((operation, context, ct) => { - operation.Tags = new HashSet { new(SoftwareTag.Name) }; + operation.Tags = new HashSet { new(SoftwareTag.Name!) }; operation.Summary = "Gets the software that subscribes to the FilterLists."; operation.OperationId = nameof(GetSoftware); return Task.CompletedTask; @@ -114,7 +114,7 @@ internal static void MapEndpoints(this WebApplication app) .Produces>() .AddOpenApiOperationTransformer((operation, context, ct) => { - operation.Tags = new HashSet { new(SyntaxesTag.Name) }; + operation.Tags = new HashSet { new(SyntaxesTag.Name!) }; operation.Summary = "Gets the syntaxes of the FilterLists."; operation.OperationId = nameof(GetSyntaxes); return Task.CompletedTask; @@ -127,7 +127,7 @@ internal static void MapEndpoints(this WebApplication app) .Produces>() .AddOpenApiOperationTransformer((operation, context, ct) => { - operation.Tags = new HashSet { new(TagsTag.Name) }; + operation.Tags = new HashSet { new(TagsTag.Name!) }; operation.Summary = "Gets the tags of the FilterLists."; operation.OperationId = nameof(GetTags); return Task.CompletedTask;