MCPcopy Index your code
hub / github.com/github/copilot-sdk / isObjectSchema

Function isObjectSchema

scripts/codegen/utils.ts:398–402  ·  view source on GitHub ↗
(schema: JSONSchema7 | null | undefined)

Source from the content-addressed store, hash-verified

396 * and other non-object schemas.
397 */
398export function isObjectSchema(schema: JSONSchema7 | null | undefined): boolean {
399 if (!schema) return false;
400 if (schema.type === "object" && schema.properties) return true;
401 return false;
402}
403
404/**
405 * Returns true if the schema represents a void/null result (type: "null").

Callers 11

findRustDiscriminatorFunction · 0.85
tryEmitRustUnionFunction · 0.85
resolveRustTypeFunction · 0.85
asGeneratedObjectSchemaFunction · 0.85
generateApiTypesCodeFunction · 0.85
emitRpcResultTypeFunction · 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…