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

Function writeUnreadableStandardSchemaMessage

ark/sets/fromJsonSchema.ts:1926–1931  ·  view source on GitHub ↗
(
	vendor: string,
	method: "input" | "output",
	cause: unknown
)

Source from the content-addressed store, hash-verified

1924 `Schema must be a Type, a Standard JSON Schema or a JSON Schema (was ${actual})`
1925
1926export const writeUnreadableStandardSchemaMessage = (
1927 vendor: string,
1928 method: "input" | "output",
1929 cause: unknown
1930): string =>
1931 `${vendor}'s ~standard.jsonSchema.${method} threw (${cause instanceof Error ? cause.message : printable(cause)})`
1932
1933export const writeInvalidJsonSchemaMessage = (
1934 pointer: string,

Callers 1

readStandardSchemaFunction · 0.90

Calls 1

printableFunction · 0.90

Tested by

no test coverage detected