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

Function indexArray

src/JSONSchemaInput.ts:77–82  ·  view source on GitHub ↗
(cases: any, index: number)

Source from the content-addressed store, hash-verified

75}
76
77function indexArray(cases: any, index: number): StringMap {
78 if (!Array.isArray(cases)) {
79 return panic("oneOf or anyOf value must be an array");
80 }
81 return checkStringMap(cases[index]);
82}
83
84function getName(schema: StringMap, name: string, isInferred: boolean): [string, boolean] {
85 if (!isInferred) {

Callers 1

lookupRefFunction · 0.85

Calls 2

panicFunction · 0.90
checkStringMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…