internal static IOpenApiBuilder AddOpenApiLogger(this IServiceCollection services)
        {
            var builder = new OpenApiBuilder(services);

            if (services == null)
            {
                throw new ArgumentNullException(nameof(services));
            }
            services.TryAddEnumerable(
                ServiceDescriptor.Singleton <IOpenApiLogger, OpenApiLogger>());
            return(builder);
        }
        public static IOpenApiBuilder AddOpenApi(this IServiceCollection services)
        {
            var builder = new OpenApiBuilder(services);

            if (services == null)
            {
                throw new ArgumentNullException(nameof(services));
            }
            ConfigureDefaultServices(services);
            AddOpenApiServices(services);
            return(builder);
        }