Maybe it is a good idea to look at the inner workings of the Swagger UI to find reusable code components. Swagger UI is able to lazy-load remote references, for instance open the endpoint specifications in my online example.
Alternatives Considered
No response
Additional Context
Open WebUI version: v0.6.13
Originally created by @flange-ipb on GitHub (Jun 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14688
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### Problem Description
OpenAPI specifications may reference other files via [$ref](https://swagger.io/docs/specification/v3_0/using-ref/#ref-syntax), in particular remote and URL references.
Online example: https://msbi.ipb-halle.de/MassBank-api/ui/openapi.yaml ([permalink](https://github.com/MassBank/MassBank3/blob/68e678ed65df7a4ddd17824c0fbd29a8afe7668e/api/openapi.yaml))
When loading this openapi.yaml I end up in the catch block at [AddServerModal.svelte#L58](https://github.com/open-webui/open-webui/blob/main/src/lib/components/AddServerModal.svelte#L58) (this is a very unspecific error message BTW). The exception is thrown somewhere in [getToolServerData](https://github.com/open-webui/open-webui/blob/53764fe64884da147359e54ed6d9607fe57f1600/src/lib/apis/index.ts#L295).
### Desired Solution you'd like
Maybe it is a good idea to look at the inner workings of the [Swagger UI](https://github.com/swagger-api/swagger-ui) to find reusable code components. Swagger UI is able to lazy-load remote references, for instance open the endpoint specifications in my [online example](https://msbi.ipb-halle.de/MassBank-api/ui/).
### Alternatives Considered
_No response_
### Additional Context
Open WebUI version: v0.6.13
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @flange-ipb on GitHub (Jun 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14688
Check Existing Issues
Problem Description
OpenAPI specifications may reference other files via $ref, in particular remote and URL references.
Online example: https://msbi.ipb-halle.de/MassBank-api/ui/openapi.yaml (permalink)
When loading this openapi.yaml I end up in the catch block at AddServerModal.svelte#L58 (this is a very unspecific error message BTW). The exception is thrown somewhere in getToolServerData.
Desired Solution you'd like
Maybe it is a good idea to look at the inner workings of the Swagger UI to find reusable code components. Swagger UI is able to lazy-load remote references, for instance open the endpoint specifications in my online example.
Alternatives Considered
No response
Additional Context
Open WebUI version: v0.6.13
@tjbck commented on GitHub (Jun 5, 2025):
PR Welcome.