validateMapOnSchema

fun validateMapOnSchema(args: Map<String, Any?>, schema: Schema, argsName: String): ERROR CLASS: Symbol not found for Result<kotlin/Unit>

Validates a map against a schema.

Return

Result.success if the map matches the schema, Result.failure wrapping an IllegalArgumentException describing the first validation error otherwise.

Parameters

args

The map to validate.

schema

The schema to validate against.

argsName

The name of the arguments being validated (e.g., "Input" or "Output").