MCPcopy Index your code
hub / github.com/AndrewWalsh/openapi-devtools / isJSONFile

Function isJSONFile

src/utils/helpers.ts:8–9  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

6const isGraphQLURI = (url: string): boolean =>
7 url.toLowerCase().endsWith("graphql");
8const isJSONFile = (url: string): boolean =>
9 url.toLowerCase().endsWith(".json");
10const isValidURL = (url: string): boolean => {
11 try {
12 new URL(url);

Callers 1

isValidRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected