microsoft / microsoft/OpenAPI.NET

OpenApiStreamReader.ReadAsync() throws an InvalidOperation exception when using ResolveAllReferences

Open
#609 4 comments 0 reactions 1 assignee View on GitHub

@darrelmiller is already working on this.

Since Apr 3, 2023.

status:waiting-for-internal-feedback
Dominant language
C#
Stars
1.6k
Forks
286
Avg merge
6h 38m
Merged PRs (30d)
35

Description

Need help resolving remote references.

OpenApiStreamReader.ReadAsync() throws an InvalidOperation exception with the message "This operation is not supported for a relative URI." when using 'ReferenceResolutionSetting.ResolveAllReferences' flag.

what should the BaseUrl be set to ? currently I am not setting it not sure what I need to set it to.
I am using the yaml files defined in https://github.com/jdegre/5GC_APIs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.