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

Function getUnionVariants

scripts/codegen/rust.ts:236–240  ·  view source on GitHub ↗
(schema: JSONSchema7)

Source from the content-addressed store, hash-verified

234}
235
236function getUnionVariants(schema: JSONSchema7): JSONSchema7[] | null {
237 if (schema.anyOf) return schema.anyOf as JSONSchema7[];
238 if (schema.oneOf) return schema.oneOf as JSONSchema7[];
239 return null;
240}
241
242interface RustUnionVariant {
243 schema: JSONSchema7;

Callers 2

tryEmitRustUnionFunction · 0.85
generateApiTypesCodeFunction · 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…