Skip to content

Remove Experimental attribute from AddOpenApiForJsonApi #1724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Examples/JsonApiDotNetCoreExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ static void ConfigureServices(WebApplicationBuilder builder)

using (CodeTimingSessionManager.Current.Measure("AddOpenApiForJsonApi()"))
{
#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.
builder.Services.AddOpenApiForJsonApi(options => options.DocumentFilter<SetOpenApiServerAtBuildTimeFilter>());
#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.
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Diagnostics.CodeAnalysis;
using JsonApiDotNetCore.Configuration;
using JsonApiDotNetCore.Middleware;
using JsonApiDotNetCore.OpenApi.Swashbuckle.JsonApiMetadata;
Expand All @@ -21,7 +20,6 @@ public static class ServiceCollectionExtensions
/// <summary>
/// Configures OpenAPI for JsonApiDotNetCore using Swashbuckle.
/// </summary>
[Experimental("JADNC_OA_001", UrlFormat = "https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/docs/usage/openapi.md")]
public static void AddOpenApiForJsonApi(this IServiceCollection services, Action<SwaggerGenOptions>? configureSwaggerGenOptions = null)
{
ArgumentNullException.ThrowIfNull(services);
Expand Down
3 changes: 0 additions & 3 deletions test/OpenApiTests/OpenApiStartup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ public class OpenApiStartup<TDbContext> : TestableStartup<TDbContext>
public override void ConfigureServices(IServiceCollection services)
{
base.ConfigureServices(services);

#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.
services.AddOpenApiForJsonApi(SetupSwaggerGenAction);
#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.
}

protected override void SetJsonApiOptions(JsonApiOptions options)
Expand Down
Loading