honk/validation/field/reference

Values

pub fn validate_data(
  data: json.Json,
  schema: json.Json,
  ctx: context.ValidationContext,
) -> Result(Nil, errors.ValidationError)

Validates data against the referenced schema Uses the validator from the context for recursive validation

pub fn validate_schema(
  schema: json.Json,
  ctx: context.ValidationContext,
) -> Result(Nil, errors.ValidationError)

Validates reference schema definition

Search Document