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.
This commit is contained in:
Marco Minerva
2025-11-17 10:20:36 +01:00
parent 502c8756b1
commit dba2fb1c41
2 changed files with 4 additions and 3 deletions
@@ -18,7 +18,7 @@ namespace SqlDatabaseVectorSearch.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.0-rc.1.25451.107")
.HasAnnotation("ProductVersion", "10.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+3 -2
View File
@@ -11,6 +11,7 @@ using SqlDatabaseVectorSearch.Services;
using SqlDatabaseVectorSearch.Settings;
using SqlDatabaseVectorSearch.TextChunkers;
using TinyHelpers.AspNetCore.Extensions;
using TinyHelpers.AspNetCore.OpenApi;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddJsonFile("appsettings.local.json", optional: true, reloadOnChange: true);
@@ -75,8 +76,8 @@ builder.Services.AddScoped<VectorSearchService>();
builder.Services.AddOpenApi(options =>
{
//options.RemoveServerList();
//options.AddDefaultProblemDetailsResponse();
options.RemoveServerList();
options.AddDefaultProblemDetailsResponse();
});
ValidatorOptions.Global.LanguageManager.Enabled = false;