Manually describe Version for openapi

This commit is contained in:
Cody Robibero 2022-05-20 16:29:43 -06:00
parent 60affd0965
commit 760b021032

View file

@ -440,6 +440,12 @@ namespace Jellyfin.Server.Extensions
.Cast<IOpenApiAny>()
.ToArray()
});
// Swashbuckle doesn't use JsonOptions to describe responses, so we need to manually describe it.
options.MapType<Version>(() => new OpenApiSchema
{
Type = "string"
});
}
}
}