[backend/swagger] Set SwaggerDoc versions correctly (ISH-350)
This commit is contained in:
parent
d3aed20843
commit
55250e59f0
1 changed files with 4 additions and 3 deletions
|
@ -174,9 +174,10 @@ public static class ServiceExtensions
|
||||||
{
|
{
|
||||||
options.SupportNonNullableReferenceTypes();
|
options.SupportNonNullableReferenceTypes();
|
||||||
|
|
||||||
options.SwaggerDoc("iceshrimp", new OpenApiInfo { Title = "Iceshrimp.NET" });
|
var version = new Config.InstanceSection().Version;
|
||||||
options.SwaggerDoc("federation", new OpenApiInfo { Title = "Federation" });
|
options.SwaggerDoc("iceshrimp", new OpenApiInfo { Title = "Iceshrimp.NET", Version = version });
|
||||||
options.SwaggerDoc("mastodon", new OpenApiInfo { Title = "Mastodon" });
|
options.SwaggerDoc("federation", new OpenApiInfo { Title = "Federation", Version = version });
|
||||||
|
options.SwaggerDoc("mastodon", new OpenApiInfo { Title = "Mastodon", Version = version });
|
||||||
|
|
||||||
options.AddSecurityDefinition("iceshrimp",
|
options.AddSecurityDefinition("iceshrimp",
|
||||||
new OpenApiSecurityScheme
|
new OpenApiSecurityScheme
|
||||||
|
|
Loading…
Add table
Reference in a new issue