Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS3033: Payload is not supported #181

Closed
jkone27 opened this issue Mar 19, 2021 · 2 comments
Closed

FS3033: Payload is not supported #181

jkone27 opened this issue Mar 19, 2021 · 2 comments

Comments

@jkone27
Copy link
Contributor

jkone27 commented Mar 19, 2021

Description

[<Literal>]
let openApi= __SOURCE_DIRECTORY__ + "/SWopenapi.yaml"

//OpenApi type provider
type MyApi = OpenApiClientProvider<openApi>

Repro steps

the Openapi spec is valid :
https://apitools.dev/swagger-parser/online/

but the type provider give an unknown error (also hard to fix , try to patch in the openapi yaml eventually)

SWopenapi.txt

attached yaml file (change extension)

Expected behavior

The type provider works

Actual behavior

error FS3033: The type provider 'SwaggerProvider.OpenApiClientTypeProvider' reported an error: Payload 'quantityIdentityId' is not supported

Please provide a description of the actual behavior you observe.

Known workarounds

None i could find, not clear what's wrong in the openapi definition as that's valid according to online parsers

Related information

  • Windows 10
  • latest nuget package
  • NET5
  • Both vs2019 and vscode give errors
@jkone27 jkone27 changed the title FS3033: The type provider 'SwaggerProvider.OpenApiClientTypeProvider' reported an error: Payload re-ticket-script.fsx(16,30): error FS3033: The type provider 'SwaggerProvider.OpenApiClientTypeProvider' reported an error: Payload 'bookingIdentityId' is not supportedis not supported FS3033: Payload is not supported Mar 19, 2021
sergey-tihon added a commit that referenced this issue Mar 20, 2021
@sergey-tihon
Copy link
Member

Fixed in latest package

#r "nuget: SwaggerProvider, 1.0.0-beta3"
open SwaggerProvider

let [<Literal>] openApi= __SOURCE_DIRECTORY__ + "/schema.yaml"
type MyApi = OpenApiClientProvider<openApi>

test_fsx_—_SwaggerProvider

@jkone27
Copy link
Contributor Author

jkone27 commented Mar 24, 2021

awesome! :) will try this out, thank you so much @sergey-tihon 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants