Description
Description
Can't get the most basic example in docs to compile
Repro steps
Please provide the steps required to reproduce the problem
-
Add reference to SwaggerProvider (using 2.1.3)
-
use this code straight from the docs:
https://fsprojects.github.io/SwaggerProvider/#/
open SwaggerProvider
let [<Literal>] Schema = "https://petstore.swagger.io/v2/swagger.json"
type PetStore = OpenApiClientProvider<Schema>
Expected behavior
Would expect this to compile, but it does not.
(this is not my swagger url obviously, but it doesn't matter what url you use since it doesn't compile)
Actual behavior
Compiler gives error 'OpenApiClientProvider was not defined'
Known workarounds
Please provide a description of any known workarounds.
should also note that when browsing the assembly, don't see a class named: OpenApiClientProvider.
tried uninstalling and reinstalling the pkg, but same error.
is the documentation no longer correct? is there a working example somewhere else?
Affected Type Providers
- [x ] OpenApiClientProvider
Related information
- Operating system : ubuntu 21.2 jammy
- .NET Runtime, CoreCLR or Mono Version : targetting dotnet 6.0
$ dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.35 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.19 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.35 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.19 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
- Performance information, links to performance testing scripts n/a