-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
Description
Reported by @tencek on gitter
Hi, I updated from SwaggerProvider from 0.8.1 to 0.10.0-alpha9 to start using the *Async API. I'm getting an error I do not understand: error FS3033: The type provider 'SwaggerProvider.SwaggerTypeProvider' reported an error: Incorrect instance type Parameter name: obj I see the same error even with the petstore example from SwaggerProvider homepage. Here - they explain a possible reason but I can't figure out any action for my case. Any hints?
Repro steps
Please provide the steps required to reproduce the problem
-
Restore the latest version from NuGet
-
Try sample from site
#load @"packages/SwaggerProvider/SwaggerProvider.fsx"
open SwaggerProvider
let [<Literal>]schema = "http://petstore.swagger.io/v2/swagger.json"
type PetStore = SwaggerProvider<schema, PreferAsync=true> // Provided Types
let petStore = PetStore()
Expected behavior
Works =)
Actual behavior
Known workarounds
No
@baronfel do you have ideas? Looks like incorrect coercion?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
