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

Function asGeneratedObjectSchema

scripts/codegen/rust.ts:1338–1350  ·  view source on GitHub ↗
(
	schema: JSONSchema7,
	defCollections: DefinitionCollections,
)

Source from the content-addressed store, hash-verified

1336}
1337
1338function asGeneratedObjectSchema(
1339 schema: JSONSchema7,
1340 defCollections: DefinitionCollections,
1341): JSONSchema7 | undefined {
1342 const resolved = resolveObjectSchema(schema, defCollections);
1343 if (!resolved || !isObjectSchema(resolved)) return undefined;
1344
1345 return {
1346 ...resolved,
1347 title: resolved.title ?? schema.title,
1348 description: schema.description ?? resolved.description,
1349 };
1350}
1351
1352function getMethodParamsObjectSchema(
1353 method: RpcMethod,

Callers 3

generateApiTypesCodeFunction · 0.85

Calls 2

resolveObjectSchemaFunction · 0.85
isObjectSchemaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…