MCPcopy
hub / github.com/AndrewWalsh/openapi-devtools / createSchemaElseUndefined

Function createSchemaElseUndefined

src/utils/helpers.ts:84–89  ·  view source on GitHub ↗
(
  json: JSONType
)

Source from the content-addressed store, hash-verified

82};
83
84export const createSchemaElseUndefined = (
85 json: JSONType
86): Schema | undefined => {
87 if (!json) return undefined;
88 return createSchema(json);
89};
90
91export const safelyGetURLHost = (url: string): string | null => {
92 try {

Callers 1

createLeafFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected