Skip to content

Commit b45b3ff

Browse files
authored
Remove Experimental attribute from AddOpenApiForJsonApi, now that preview packages are deployed on NuGet (#1724)
1 parent 7a59c74 commit b45b3ff

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

src/Examples/JsonApiDotNetCoreExample/Program.cs

-2
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ static void ConfigureServices(WebApplicationBuilder builder)
7979

8080
using (CodeTimingSessionManager.Current.Measure("AddOpenApiForJsonApi()"))
8181
{
82-
#pragma warning disable JADNC_OA_001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
8382
builder.Services.AddOpenApiForJsonApi(options => options.DocumentFilter<SetOpenApiServerAtBuildTimeFilter>());
84-
#pragma warning restore JADNC_OA_001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
8583
}
8684
}
8785

src/JsonApiDotNetCore.OpenApi.Swashbuckle/ServiceCollectionExtensions.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Diagnostics.CodeAnalysis;
21
using JsonApiDotNetCore.Configuration;
32
using JsonApiDotNetCore.Middleware;
43
using JsonApiDotNetCore.OpenApi.Swashbuckle.JsonApiMetadata;
@@ -21,7 +20,6 @@ public static class ServiceCollectionExtensions
2120
/// <summary>
2221
/// Configures OpenAPI for JsonApiDotNetCore using Swashbuckle.
2322
/// </summary>
24-
[Experimental("JADNC_OA_001", UrlFormat = "https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/docs/usage/openapi.md")]
2523
public static void AddOpenApiForJsonApi(this IServiceCollection services, Action<SwaggerGenOptions>? configureSwaggerGenOptions = null)
2624
{
2725
ArgumentNullException.ThrowIfNull(services);

test/OpenApiTests/OpenApiStartup.cs

-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ public class OpenApiStartup<TDbContext> : TestableStartup<TDbContext>
1414
public override void ConfigureServices(IServiceCollection services)
1515
{
1616
base.ConfigureServices(services);
17-
18-
#pragma warning disable JADNC_OA_001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
1917
services.AddOpenApiForJsonApi(SetupSwaggerGenAction);
20-
#pragma warning restore JADNC_OA_001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
2118
}
2219

2320
protected override void SetJsonApiOptions(JsonApiOptions options)

0 commit comments

Comments
 (0)