Uh oh!
There was an error while loading. Please reload this page.
How to load external referenced fragments/documents? #679
Answered
bydarrelmiller
Egil Hansen (egil)
asked this question in
Q&A
I have the following two documents: Demo-API.v1.yaml openapi: 3.0.0info:
title: Demo APIversion: '1.0'servers:
- url: /paths:
/:
get:
summary: Your GET endpointtags: []responses:
'200':
description: OKcontent:
application/json:
schema:
type: stringoperationId: get-hiparameters:
- schema:
type: stringin: queryname: message/ping:
get:
summary: Your GET endpointtags: []responses:
'200':
description: OKcontent:
application/json:
schema:
type: stringoperationId: get-ping/pong:
$ref: './Paths.v1.yaml#/pong'components:
schemas: {}Paths.v1.yaml pong:
get:
summary: Your GET endpointtags: []responses:
'200':
description: OKcontent:
application/json:
schema:
type: stringBoth files are in the same folder, but I cannot get the varopenApiReader=newOpenApiStreamReader(newOpenApiReaderSettings{BaseUrl=newUri("file://C:\\source\\temp\\ConsoleApp1\\ConsoleApp1\\reference"),ReferenceResolution=ReferenceResolutionSetting.ResolveAllReferences,});varreadResult=awaitopenApiReader.ReadAsync(File.OpenRead(@"C:\\source\\temp\\ConsoleApp1\\ConsoleApp1\\reference\\Demo-API.v1.yaml"));However, the content of the What am I missing here? Version: |
Answered by
darrelmiller
Jan 19, 2022
Replies: 1 comment 3 replies
The code to make this happen is still work in progress. If when you write out the result you set it to inline, the results, it should include the referenced file in the output. I'm hoping to get this fixed in the next couple of weeks. |
3 replies
Answer selected byegil
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
The code to make this happen is still work in progress. If when you write out the result you set it to inline, the results, it should include the referenced file in the output. I'm hoping to get this fixed in the next couple of weeks.