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

Function getUnionMembers

scripts/codegen/csharp.ts:922–924  ·  view source on GitHub ↗
(schema: JSONSchema7)

Source from the content-addressed store, hash-verified

920}
921
922function getUnionMembers(schema: JSONSchema7): JSONSchema7[] | undefined {
923 return (schema.anyOf ?? schema.oneOf) as JSONSchema7[] | undefined;
924}
925
926function getNonNullUnionMembers(schema: JSONSchema7): JSONSchema7[] {
927 return (getUnionMembers(schema) ?? []).filter((s) => typeof s === "object" && s !== null && (s as JSONSchema7).type !== "null");

Callers 1

getNonNullUnionMembersFunction · 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…