acanthis library
Classes
- AcanthisBoolean
-
AcanthisCheck<
O> - A class that represents a check operation
- AcanthisDate
- A class to validate date types
-
AcanthisList<
T> - A class to validate list types
-
AcanthisMap<
V> - A class to validate map types
-
AcanthisNullable<
T> - A class to validate nullable types
- AcanthisNumber
- A class to validate number types
-
AcanthisOperation<
O> - A class that represents an operation
-
AcanthisParseResult<
O> - A class to represent the result of a parse operation
- AcanthisString
- A class to validate string types
-
AcanthisTransformation<
O> - A class that represents a transformation operation
-
AcanthisType<
O> - A class to validate types
- AcanthisUnion
- A class to validate union types that can be one of the elements in the list
Functions
-
boolean(
) → AcanthisBoolean - Create a boolean validator
-
date(
) → AcanthisDate - Create a new date type
-
number(
) → AcanthisNumber - Create a number type
-
object(
Map< String, AcanthisType> fields) → AcanthisMap -
Create a map of
fields
-
string(
) → AcanthisString - Create a new AcanthisString instance
-
union(
List< AcanthisType> elements) → AcanthisUnion - A class that represents a transformation operation
Exceptions / Errors
- ValidationError
- Error thrown when a validation fails.