Skip to content

Commit dba2fb1

Browse files
committed
Update to stable version and enhance OpenAPI configuration
Updated `ProductVersion` in `ApplicationDbContextModelSnapshot.cs` to target the stable release version `10.0.0`. Added `TinyHelpers.AspNetCore.OpenApi` to `Program.cs` and enabled OpenAPI options by uncommenting `RemoveServerList` and `AddDefaultProblemDetailsResponse`. These changes improve API documentation and error handling.
1 parent 502c875 commit dba2fb1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

SqlDatabaseVectorSearch/Data/Migrations/ApplicationDbContextModelSnapshot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
1818
{
1919
#pragma warning disable 612, 618
2020
modelBuilder
21-
.HasAnnotation("ProductVersion", "10.0.0-rc.1.25451.107")
21+
.HasAnnotation("ProductVersion", "10.0.0")
2222
.HasAnnotation("Relational:MaxIdentifierLength", 128);
2323

2424
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);

SqlDatabaseVectorSearch/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using SqlDatabaseVectorSearch.Settings;
1212
using SqlDatabaseVectorSearch.TextChunkers;
1313
using TinyHelpers.AspNetCore.Extensions;
14+
using TinyHelpers.AspNetCore.OpenApi;
1415

1516
var builder = WebApplication.CreateBuilder(args);
1617
builder.Configuration.AddJsonFile("appsettings.local.json", optional: true, reloadOnChange: true);
@@ -75,8 +76,8 @@
7576

7677
builder.Services.AddOpenApi(options =>
7778
{
78-
//options.RemoveServerList();
79-
//options.AddDefaultProblemDetailsResponse();
79+
options.RemoveServerList();
80+
options.AddDefaultProblemDetailsResponse();
8081
});
8182

8283
ValidatorOptions.Global.LanguageManager.Enabled = false;

0 commit comments

Comments
 (0)