Failing to compile in common scenario calling array member
See original GitHub issueHi,
It looks like whenever a spec has an operation which returns a type containing an array of custom types, the type provider fails to compile at the point of calling that array member. Minimal repro at https://github.com/adamjones1/swagger-provider-error. (It compiles fine if line 9 of Program.fs
calling .Items
is commented out.) This is using version 0.8.2, though I only encountered the issue this week curiously - possibly the spec I was using changed in that time.
The reported error is: “FS3033 The type provider ‘SwaggerProvider.SwaggerTypeProvider’ reported an error in the context of provided type ‘SwaggerProvider.MyTypeProvider+Response’, member ‘get_Items’. The error: The operation ‘Namespace’ on item ‘Item[]’ should not be called on provided type, member or parameter”
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
Ah, apologies I wasn’t aware the API had changed in the dev package - after updating the client as per your screenshot above the 0.10.0-beta05 one worked for me.
Looks fine with latest released beta. Please reopen if you can reproduce