SchemaUtils

Utility class for validating and inferring schemas.

Functions

Link copied to clipboard

Returns text read as JSON into plain Kotlin values, or text itself if it is not strict JSON or is nested too deep to read.

Link copied to clipboard
fun validateMapOnSchema(args: Map<String, Any?>, schema: Schema, argsName: String): Result<Unit>

Validates a map against a schema.

Link copied to clipboard

Parses a model output string as JSON and validates it against a schema.