mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
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:
@@ -18,7 +18,7 @@ namespace SqlDatabaseVectorSearch.Migrations
|
|||||||
{
|
{
|
||||||
#pragma warning disable 612, 618
|
#pragma warning disable 612, 618
|
||||||
modelBuilder
|
modelBuilder
|
||||||
.HasAnnotation("ProductVersion", "10.0.0-rc.1.25451.107")
|
.HasAnnotation("ProductVersion", "10.0.0")
|
||||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||||
|
|
||||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ using SqlDatabaseVectorSearch.Services;
|
|||||||
using SqlDatabaseVectorSearch.Settings;
|
using SqlDatabaseVectorSearch.Settings;
|
||||||
using SqlDatabaseVectorSearch.TextChunkers;
|
using SqlDatabaseVectorSearch.TextChunkers;
|
||||||
using TinyHelpers.AspNetCore.Extensions;
|
using TinyHelpers.AspNetCore.Extensions;
|
||||||
|
using TinyHelpers.AspNetCore.OpenApi;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
builder.Configuration.AddJsonFile("appsettings.local.json", optional: true, reloadOnChange: true);
|
builder.Configuration.AddJsonFile("appsettings.local.json", optional: true, reloadOnChange: true);
|
||||||
@@ -75,8 +76,8 @@ builder.Services.AddScoped<VectorSearchService>();
|
|||||||
|
|
||||||
builder.Services.AddOpenApi(options =>
|
builder.Services.AddOpenApi(options =>
|
||||||
{
|
{
|
||||||
//options.RemoveServerList();
|
options.RemoveServerList();
|
||||||
//options.AddDefaultProblemDetailsResponse();
|
options.AddDefaultProblemDetailsResponse();
|
||||||
});
|
});
|
||||||
|
|
||||||
ValidatorOptions.Global.LanguageManager.Enabled = false;
|
ValidatorOptions.Global.LanguageManager.Enabled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user