MCPcopy Create free account
hub / github.com/glideapps/quicktype / getName

Function getName

src/JSONSchemaInput.ts:84–94  ·  view source on GitHub ↗
(schema: StringMap, name: string, isInferred: boolean)

Source from the content-addressed store, hash-verified

82}
83
84function getName(schema: StringMap, name: string, isInferred: boolean): [string, boolean] {
85 if (!isInferred) {
86 return [name, false];
87 }
88 const title = schema.title;
89 if (typeof title === "string") {
90 return [title, false];
91 } else {
92 return [name, true];
93 }
94}
95
96function checkTypeList(typeOrTypes: any): OrderedSet<string> {
97 if (typeof typeOrTypes === "string") {

Callers 3

makeClassFunction · 0.85
fromTypeNameFunction · 0.85
convertToTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…