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

Function goDiscriminatorValues

scripts/codegen/go.ts:623–631  ·  view source on GitHub ↗
(schema: JSONSchema7, ctx: GoCodegenCtx)

Source from the content-addressed store, hash-verified

621}
622
623function goDiscriminatorValues(schema: JSONSchema7, ctx: GoCodegenCtx): GoDiscriminatorValues | undefined {
624 const stringValues = goStringEnumValues(schema, ctx);
625 if (stringValues) return { kind: "string", values: stringValues };
626
627 const booleanValues = goBooleanDiscriminatorValues(schema, ctx);
628 if (booleanValues) return { kind: "boolean", values: booleanValues };
629
630 return undefined;
631}
632
633/**
634 * Find a literal-valued discriminator property shared by all anyOf variants.

Callers 1

findGoDiscriminatorFunction · 0.85

Calls 2

goStringEnumValuesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…