-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix: vnext schema refs #185
base: vnext
Are you sure you want to change the base?
Conversation
@@ -426,6 +429,8 @@ public string Load(string reference) | |||
userName: | |||
description: User name. | |||
type: string | |||
orderHistory: | |||
$ref: '#/components/OrderHistory' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these component refs are wrong.
its usually #/components/{componentType}/{refId}
, which also means the components object is technically invalid in this test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @VisualBean I've updated with valid componentType
object now I think. It's still not resolving though so I think the initial thought about internals not being resolved in externals is still valid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ive debugged through it, and it seems to stem from the externalReferenceResolver.
Basically when the external reference is loaded, the subreferences are internal. So the ResolveReference method simply returns null.
if (reference.IsExternal)
{
...
return externalAsyncApiContent;
}
return null;
So - hopefully my referenceresolution followup PR will fix it.
5d95d59
to
a9d501d
Compare
About the PR
Some tests