Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
8
export
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
parseOpenAPIV3
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected