validate module

Maylang standard-library module.

import "validate" as validate;

Functions

validate_nonempty

may
fun validate_nonempty(s: Any) -> Bool

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

validate_in_range

may
fun validate_in_range(x: Any, lo: Float, hi: Float) -> Bool

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

validate_email

may
fun validate_email(s: Str) -> Bool

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

validate_url

may
fun validate_url(s: Str) -> Bool

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

validate_all

may
fun validate_all(value: Any, rules: List<ValidationRule>) -> Validation

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

validate_required_fields

may
fun validate_required_fields(value: Map<Str, Any>, fields: List<Str>) -> RequiredFields

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

validate_int_string

may
fun validate_int_string(s: Any) -> Bool

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

validate_float_string

may
fun validate_float_string(s: Any) -> Bool

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

Types

ValidationRule

may
struct ValidationRule { check: (Any) -> Bool, message: Str }

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

Validation

may
struct Validation { ok: Bool, errors: List<Str>, value: Any }

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

RequiredFields

may
struct RequiredFields { ok: Bool, missing: List<Str> }

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source