package
1.0.0
Repository: https://github.com/cloudprivacylabs/lsa.git
Documentation: pkg.go.dev

# Variables

ConstTerm is used for constant value validator Const is declared as a string value: { @id: attrId, @type: Value, validation/const: "a" } Const is syntactic sugar for enum with a single value.
EnumTerm is used for enumeration validator Enumeration is declared as a string slice: { @id: attrId, @type: Value, validation/enumeration: ["a","b","c"] }.
JsonFormatTerm validates if the value matches one of the json format implementations.
PatternTerm validates against a regex.
RequiredTerm validates if a required properties exist.

# Structs

EnumValidator checks if a value is equal to one of the given options.
JsonFormatValidator checks if the input value matches a given format.
PatternValidator validates a string value against a regex.
RequiredValidator validates if a required value exists.