-
Notifications
You must be signed in to change notification settings - Fork 242
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
Getting NullReferenceException when deserializing a yaml document #1989
Comments
Hi, do you mind sharing the OpenApi file you're using for us to reproduce this? |
The link of file is on description: |
Any updates here? Thanks |
Hi @lucassklp, sorry for the delay in response. OpenAPI.NET/src/Microsoft.OpenApi/Models/OpenApiDocument.cs Lines 536 to 541 in 878dd08
2.0.0-preview3 and above.I'd recommend you try loading it from a memory stream if you prefer to retain the operation as synchronous otherwise you can use our async overloads. |
Describe the bug
I aim trying to deserialize a yaml open api file, but it's getting NullReferenceException
OpenApi File To Reproduce
https://api.codacy.com/api/api-docs/swagger.yaml
Expected behavior
The document shoud be serialized correctly
Screenshots/Code Snippets
Code to reproduce available here:
https://github.com/lucassklp/Rx.Http.CodeGen/tree/ce2a7b97ec91ba09e56f3c77d62e1730abe1463d
Methods i'm calling:
Stacktrace:
Additional context
Version: 2.0.0-preview2
The text was updated successfully, but these errors were encountered: