MCPcopy Index your code
hub / github.com/glideapps/quicktype / lookupDefinition

Function lookupDefinition

src/JSONSchemaInput.ts:67–70  ·  view source on GitHub ↗
(schema: StringMap, name: string)

Source from the content-addressed store, hash-verified

65}
66
67function lookupDefinition(schema: StringMap, name: string): StringMap {
68 const definitions = checkStringMap(schema.definitions);
69 return checkStringMap(definitions[name]);
70}
71
72function lookupProperty(schema: StringMap, name: string): StringMap {
73 const properties = checkStringMap(schema.properties);

Callers 1

lookupRefFunction · 0.85

Calls 1

checkStringMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…