.WithOpenApi( opts => { OpenApiParameter? sourcesParameter = opts.Parameters[0]; sourcesParameter.Description = "Sources"; sourcesParameter.Schema = new() { Type = "array", Items = new OpenApiSchema { Type = "string", Enum = new List<IOpenApiAny>() { new OpenApiString("value1"), new OpenApiString("value2") } } }; return opts; }
builder.ConfigureTestServices(services => { services .AddHttpClient("client-with-certificate", client => { client.BaseAddress = new Uri("https://localhost"); }) .ConfigurePrimaryHttpMessageHandler(() => { var handler = new HttpClientHandler(); handler.ClientCertificates.Add(clientCertificate); return handler; }); });