inspector
inspector copied to clipboard
Feat: add support for openRpcDocumentURI in query params
Summary: Add support for a specifying an openRPC document via URI in the query params for inspector. This will improve the ux capability of inspector.
Acceptance Criteria: You can specify openRpcDocumentUri in the query params. It will defer to the existing openRPCDocument param, in the case that both params are specified.
This feature already exists: the query parameter is called schemaUrl .
https://inspector.open-rpc.org/?schemaUrl=https://raw.githubusercontent.com/open-rpc/examples/master/service-descriptions/metrics-openrpc.json
@zcstarr I think now I see your problem. Opening the browser console I saw that requests to fetch the given schemaUrl spec fails, unless its hosted on Github. This derives from a CORS security restriction.
You can work-around it by installing a browser extension, that patches CORS headers, so that you can call external hostnames.
This one works for me on Firefox: https://mybrowseraddon.com/access-control-allow-origin.html?v=0.1.7&type=install