-
Notifications
You must be signed in to change notification settings - Fork 59
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
Support $ref in DefinitionProperty #23
Comments
@saosebastiao Could you please specify what do you expect mean by SwaggerProvider support All schemes that has custom type definition uses SwaggerProvider generates .NET types for all |
I'm getting the following error when trying to use the type provider for the Instagram API spec: Error FS3033: The type provider 'SwaggerProvider.SwaggerTypeProvider' reported an error: Reference to unknown type #/definitions/Media (FS3033) (FSharpTest) The swagger file provided does indeed define a Media data type. Here is a repo that attempts to reproduce the error: |
Thanks, nice sample. I just wonder why your Instagram API swagger.json differ from one listed in API.guru // cc: @IvanGoncharov |
I got it from the sample sets available for the demo editor at On Fri, Apr 8, 2016 at 3:01 PM, Sergey Tihon [email protected]
|
@sergey-tihon Instagram doesn't provide official Swagger files. |
Fix released in v0.4.0 |
Description
The Swagger Provider doesn't support the $ref aspect of the spec
Repro steps
let path = "swagger.json" (* uses $ref , example: instagram swagger api example *)
type PetStore = SwaggerProvider<path, "Content-Type=application/json">
Related information
May be related to the refs being part of the 2.0 spec, but I'm not sure.
The text was updated successfully, but these errors were encountered: