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

Function getNonNullUnionMembers

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

Source from the content-addressed store, hash-verified

924}
925
926function getNonNullUnionMembers(schema: JSONSchema7): JSONSchema7[] {
927 return (getUnionMembers(schema) ?? []).filter((s) => typeof s === "object" && s !== null && (s as JSONSchema7).type !== "null");
928}
929
930function getVariantSchema(variant: JSONSchema7, definitions: DefinitionCollections): JSONSchema7 | undefined {
931 if (variant.$ref) {

Callers 1

Calls 1

getUnionMembersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…