JsonSchemaValidator
org.llm4s.eval.dataset.JsonSchemaValidator
object JsonSchemaValidator
Lightweight structural validator for JSON values against a JSON Schema subset.
Only the following schema keywords are recognised; all others are silently ignored:
type— checks the JSON type of the value (object,array,string,number,boolean,null); unknown type strings are skippedrequired— when the value is a JSON object, verifies that each named key is presentproperties— when the value is a JSON object, recursively validates each listed property against its sub-schema
This is intentionally '''not''' a full JSON Schema implementation (no if/then/else, anyOf, $ref, etc.). It is sufficient for validating the structure of Example inputs and outputs in evaluation datasets.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JsonSchemaValidator.type
Members list
In this article