Skip to content

Перейти на Microsoft.AspNetCore.OpenApi вместо Swashbuckle#3993

Merged
leotsarev merged 4 commits intojoinrpg:masterfrom
leotsarev:tech/migrate-to-aspnetcore-openapi
Mar 9, 2026
Merged

Перейти на Microsoft.AspNetCore.OpenApi вместо Swashbuckle#3993
leotsarev merged 4 commits intojoinrpg:masterfrom
leotsarev:tech/migrate-to-aspnetcore-openapi

Conversation

@leotsarev
Copy link
Member

fixes #3982

Что сделано

Замена Swashbuckle.AspNetCore на встроенный Microsoft.AspNetCore.OpenApi для генерации OpenAPI-документа, UI оставлен на Swashbuckle.AspNetCore.SwaggerUI.

Ключевые изменения

  • Swashbuckle.AspNetCoreMicrosoft.AspNetCore.OpenApi + Swashbuckle.AspNetCore.SwaggerUI
  • Swagger.ConfigureSwagger (SwaggerGenOptions) → AddJoinXApiSwagger() extension method с трансформерами
  • JWT-схема: OpenApiSecurityScheme с ReferenceOpenApiSecuritySchemeReference (API Microsoft.OpenApi 2.0)
  • Фильтр путей: IDocumentFilterIOpenApiDocumentTransformer
  • app.UseSwagger()app.MapOpenApi() (эндпоинт /openapi/v1.json)
  • XML-комментарии подхватываются автоматически из всех сборок в output-директории

@leotsarev leotsarev enabled auto-merge March 7, 2026 15:24
@leotsarev leotsarev force-pushed the tech/migrate-to-aspnetcore-openapi branch from d9d66d3 to 1e318f7 Compare March 7, 2026 15:59
@leotsarev leotsarev force-pushed the tech/migrate-to-aspnetcore-openapi branch from 1e318f7 to c49fbec Compare March 9, 2026 16:53
@leotsarev leotsarev added this pull request to the merge queue Mar 9, 2026
Merged via the queue into joinrpg:master with commit 8ea5c78 Mar 9, 2026
2 checks passed
@leotsarev leotsarev deleted the tech/migrate-to-aspnetcore-openapi branch March 9, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Апгрейднуть Swashbuckle.AspNetCore

1 participant