AB.Validators (AB v0.2.1)

View Source

Functions for creating type validators from type specifications.

Summary

Functions

Creates an output validator from a type specification.

Converts a type specification to a validator function.

Functions

create_output_validator(output_type)

@spec create_output_validator(any()) :: (any() -> boolean())

Creates an output validator from a type specification.

type_to_validator(arg1)

@spec type_to_validator(any()) :: (any() -> boolean())

Converts a type specification to a validator function.