MCPcopy Index your code
hub / github.com/GitbookIO/gitbook / validate

Function validate

packages/openapi-parser/src/scalar-plugins/fetchURL.ts:10–12  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8export const fetchURL = (): Plugin => ({
9 type: 'loader',
10 validate(value) {
11 return URL.canParse(value);
12 },
13 async exec(value) {
14 try {
15 const response = await fetch(value);

Callers 1

parseOpenAPIV3Function · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected