Open
Description

just testing on official pestore version 2 and 3 of openapi seems not able to parse?
#r "nuget:Testcontainers"
#r "nuget:SwaggerProvider"
open DotNet.Testcontainers.Builders
open DotNet.Testcontainers.Containers
open SwaggerProvider
open System
type PetStoreTypes = OpenApiClientProvider<"https://petstore.swagger.io/v2/swagger.json">
let container =
new ContainerBuilder()
|> fun x -> x.WithImage("openapitools/openapi-petstore")
|> fun x -> x.WithPortBinding(8080, true)
|> fun x -> x.WithWaitStrategy(
Wait.ForUnixContainer().UntilHttpRequestIsSucceeded(
fun r -> r.ForPort(8080)
)
)
|> fun x -> x.Build()
let _ = container.StartAsync().ConfigureAwait(false).GetAwaiter().GetResult()
Metadata
Metadata
Assignees
Labels
No labels