Resolving External $ref Paths With Nested Refs in NSwag for OpenAPI Specification in C#
When attempting to generate the C# client, I encounter errors like System.InvalidOperationException: Could not resolve the path '#/components/schemas/SomeSchema'. This error suggests that NSwag cannot resolve the external references, even though the paths are correctly specified.
Here is what the ref looks like:
EDIT: Here is an example of the SomeSchema definition - the issue are the nested references I believe:
Has anyone successfully resolved external $ref paths with nested schemas using NSwag?
1 Reply