static OpenApiInfo CreateInfoForApiVersion(SwaggerConfiguration swaggerConfiguration, ApiVersionDescription api)
        {
            var info = new OpenApiInfo()
            {
                Title       = swaggerConfiguration.Title,
                Version     = api.ApiVersion.ToString(),
                Description = swaggerConfiguration.Description,
                Contact     = new OpenApiContact()
                {
                    Name = swaggerConfiguration.ContactName, Email = swaggerConfiguration.ContactEmail
                },
            };

            if (api.IsDeprecated)
            {
                info.Description += " This API version has been deprecated.";
            }

            return(info);
        }
 public static void AddSwaggerConfiguration(SwaggerConfiguration swaggerConfiguration)
 {
     _swaggerConfiguration = swaggerConfiguration;
 }