Reference/Autoevals library/TypeScript/Modules

Namespace: ValidJSON

A binary scorer that evaluates the validity of JSON output, optionally validating against a JSON Schema definition (see https://json-schema.org/learn/getting-started-step-by-step#create).

Functions

partial

partial<T>(args): Scorer<any, Omit<{ schema?: any }, T> & Partial<Pick<{ schema?: any }, T>>>

Type parameters

NameType
Textends "schema"

Parameters

NameType
args{ [K in "schema"]: Object[K] }

Returns

Scorer<any, Omit<{ schema?: any }, T> & Partial<Pick<{ schema?: any }, T>>>

Defined in

autoevals/js/partial.ts:5

On this page