We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fde0ea commit 7a3ffc3Copy full SHA for 7a3ffc3
src/components/CondaForgeYmlSchema/index.jsx
@@ -20,7 +20,15 @@ export default function CondaForgeYmlSchema({ toc = null }) {
20
},
21
})
22
.then((response) => response.json())
23
- .then((rawSchema) => new Resolver().resolve(rawSchema, {}))
+ .then((rawSchema) => new Resolver({
24
+ resolvers: {
25
+ // this resolver will be invoked for refs with the https protocol
26
+ https: {
27
+ async resolve(ref) {
28
+ return fetch(ref).then((response) => response.json())
29
+ }
30
31
+ }}).resolve(rawSchema, {}))
32
.then((resolved) => {
33
setSchema(resolved.result);
34
setResolved(true);
0 commit comments