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

Function writeInvalidKeywordMessage

ark/sets/fromJsonSchema.ts:1939–1943  ·  view source on GitHub ↗
(
	pointer: string,
	expected: string,
	actual: unknown
)

Source from the content-addressed store, hash-verified

1937 `JSON Schema at ${pointer} must be an object or a boolean (was ${printable(actual)})`
1938
1939export const writeInvalidKeywordMessage = (
1940 pointer: string,
1941 expected: string,
1942 actual: unknown
1943): string => `${pointer} must be ${expected} (was ${printable(actual)})`
1944
1945export const writeUnsupportedKeywordMessage = (pointer: string): string =>
1946 `${pointer} can't be read as a set of values`

Callers 4

resolveUriPartsFunction · 0.85
readArrayFunction · 0.85
patternSchemaOfFunction · 0.85
checkKeywordFunction · 0.85

Calls 1

printableFunction · 0.90

Tested by

no test coverage detected