diff --git a/templates/OpenApiEndpoints/OpenApiHttpTrigger.cs b/templates/OpenApiEndpoints/OpenApiHttpTrigger.cs index 9494315..33232c3 100644 --- a/templates/OpenApiEndpoints/OpenApiHttpTrigger.cs +++ b/templates/OpenApiEndpoints/OpenApiHttpTrigger.cs @@ -1,4 +1,5 @@ using System.Net; +using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes; @@ -13,6 +14,12 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi /// /// This represents the HTTP trigger entity for Open API documents. /// + [SuppressMessage("Design", "CA1823", Justification = "")] + [SuppressMessage("Design", "MEN002", Justification = "")] + [SuppressMessage("Design", "SA1206", Justification = "")] + [SuppressMessage("Layout Rules", "SA1311", Justification = "")] + [SuppressMessage("Layout Rules", "SA1500", Justification = "")] + [SuppressMessage("Readability Rules", "SX1101", Justification = "")] public static class OpenApiHttpTrigger { private const string V2 = "v2"; diff --git a/templates/OpenApiEndpoints/OpenApiHttpTriggerContext.cs b/templates/OpenApiEndpoints/OpenApiHttpTriggerContext.cs index 21968ec..ee4cf0b 100644 --- a/templates/OpenApiEndpoints/OpenApiHttpTriggerContext.cs +++ b/templates/OpenApiEndpoints/OpenApiHttpTriggerContext.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Reflection; using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core; @@ -19,6 +20,12 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi /// /// This represents the context entity for . /// + [SuppressMessage("Design", "CA1823", Justification = "")] + [SuppressMessage("Design", "MEN002", Justification = "")] + [SuppressMessage("Design", "SA1206", Justification = "")] + [SuppressMessage("Layout Rules", "SA1311", Justification = "")] + [SuppressMessage("Layout Rules", "SA1500", Justification = "")] + [SuppressMessage("Readability Rules", "SX1101", Justification = "")] public class OpenApiHttpTriggerContext : IOpenApiHttpTriggerContext { ///