Tags

Ns

Symbols

zen.tests.schema/str
{
:schema
{
:minLength
2
:maxLength
5
:regex
".*@.*"
:zen/file
"/Users/niquola/.gitlibs/libs/zen-lang/zen/593a18f7f7f780f7024ae5ee2248e50a97d4bcaa/pkg/zen/tests/schema.edn"
:title
"Test zen/string"
:cases
{
:simple
{
:valid
?true
:example
"a@b"
:minLength
{
:result
[
[0]
{
:path
[
:schema
[
[0]
:minLength
:type
"string.minLength"
:message
"Expected length >= 2, got 1"
:example
"@"
:maxLength
{
:result
[
[0]
{
:schema
[
[0]
:maxLength
:type
"string.maxLength"
:message
"Expected length <= 5, got 7"
:example
"aaa@aaa"
:regex
{
:result
[
[0]
{
:path
[
:schema
[
[0]
:regex
:type
"string.regex"
:message
"Expected match /.*@.*/, got \"a*b\""
:example
"a*b"