public ConfigureSwaggerOptions(
     IApiVersionDescriptionProvider provider,
     OpenApiDocumentDescription openApiDocumentDescription)
 {
     _provider = provider;
     _openApiDocumentDescription = openApiDocumentDescription;
 }
        /// <summary>
        /// Mantém o <see cref="OpenApiInfo"/> para esta API.
        /// </summary>
        /// <param name="description">Versão utilizada pela API</param>
        /// <param name="openApiDocumentDescription"><see cref="OpenApiDocumentDescription"/> contendo algumas informações para configuração da API no Swagger</param>
        /// <returns></returns>
        private static OpenApiInfo CreateInfoForApiVersion(ApiVersionDescription description, OpenApiDocumentDescription openApiDocumentDescription)
        {
            var info = new OpenApiInfo()
            {
                Title       = openApiDocumentDescription.Title,
                Version     = description.ApiVersion.ToString(),
                Description = openApiDocumentDescription.Description,
                Contact     = new OpenApiContact()
                {
                    Name = "Lucas Rombaldi", Email = "*****@*****.**"
                },
                License = new OpenApiLicense()
                {
                    Name = "MIT", Url = new Uri("https://opensource.org/licenses/MIT")
                }
            };

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

            return(info);
        }