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<string, Omit<{ schema?: any }, T> & Partial<Pick<{ schema?: any }, T>>>
Type parameters
| Name | Type |
|---|---|
T | extends "schema" |
Parameters
| Name | Type |
|---|---|
args | { [K in "schema"]: Object[K] } |
Returns
Scorer<string, Omit<{ schema?: any }, T> & Partial<Pick<{ schema?: any }, T>>>