You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resolver error: Could not resolve reference: Could not resolve pointer: #9922
openapi: 3.0.0
info:
title: Test API
description: test spec
version: 0.0.1
paths:
/test/v1/endpoint:
get:
parameters:
- $ref: http://localhost:3000/oas/test-domain-v1~0.0.1.yaml#/components/parameters/A
- $ref: http://localhost:3000/oas/test-domain-v1~0.0.1.yaml#/components/parameters/B
responses:
'200':
description: Success.
content:
application/json:
schema:
$ref: http://localhost:3000/oas/test-domain-v1~0.0.1.yaml#/components/parameters/A
Describe the bug you're encountering
I have refs retrieved through an API endpoint. They are properly returned and resolved inside the editor. However, swagger-ui has a problem resolving them.
When expanding an operation an error displays:
Resolver error at paths./test/v1/endpoint.get.parameters.0.$ref
Could not resolve reference: Could not resolve pointer: /components/parameters/A does not exist in document
Screenshots
Expected behavior
Additional context or thoughts
Interestingly, when added the reference files to the public folder and referencing them through there, there is no error. However it is undesirable to require a new build every time a ref is modified or added to the referenced file.
Reacted by zergeborg, Natsuki Imaeda, Vitalii Dub and Sabuhi Teymurov
ritikmodi I can't say I solved it but I did bypass it. I wrapped the updateJsonSpec action with a custom resolver function and passed that resolved object to the swagger ui component. Hope this helps!
Activity
ritikmodi commentedon Aug 31, 2024
Hey avrahamGross, were you able to solve the issue? I am also facing the same issue. Could you please help me with the solution. Thanks.
avrahamGross commentedon Sep 10, 2024
ritikmodi I can't say I solved it but I did bypass it. I wrapped the updateJsonSpec action with a custom resolver function and passed that resolved object to the swagger ui component. Hope this helps!
sabuhiteymurov commentedon Dec 11, 2024
Is there any progress on this issue? I'm also encountering it.