Skip to content

An error occurred when parsing the doc comment - cannot parse petstore? seems odd #231

Open
@jkone27

Description

@jkone27
image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions