MCPcopy Create free account
hub / github.com/arktypeio/arktype / citesDescription

Function citesDescription

ark/schema/shared/render.ts:133–139  ·  view source on GitHub ↗
(error: ArkError)

Source from the content-addressed store, hash-verified

131
132// a discriminant's description lists cases unless its union's own value was described
133const citesDescription = (error: ArkError): boolean =>
134 (error.code !== "discriminant" ||
135 (!error.onKey &&
136 error.meta?.description !== undefined &&
137 error.meta.keyword === undefined)) &&
138 error.description !== undefined &&
139 !isDefaultDescription(error, error.description)
140
141const writeSlot = (
142 error: ArkError,

Callers 1

writeFunction · 0.85

Calls 1

isDefaultDescriptionFunction · 0.85

Tested by

no test coverage detected