Tags
zen/coll
zen/primitive
zen/property
zen/schema
zen/tag
zen/type
zen.tests.schema/test-case
Ns
zen
zen.tests.schema
Symbols
zen/any
zen/boolean
zen/case
zen/coll
zen/ctx
zen/date
zen/datetime
zen/desc
zen/errors
zen/file
zen/integer
zen/keyword
zen/map
zen/name
zen/number
zen/operation
zen/primitive
zen/property
zen/regex
zen/resource
zen/schema
zen/schema-errors
zen/schema-result
zen/set
zen/string
zen/symbol
zen/tag
zen/tags
zen/type
zen/validation-fn
zen/vector
zen.tests.schema/map-exclusive-keys
zen.tests.schema/map-require
zen.tests.schema/str
zen.tests.schema/test-case
zen.tests.schema/valid-schemas
zen.tests.schema/map-exclusive-keys
{
:schema
{
:type
zen/map
:keys
{
:c
{
:type
zen/string
:b
{
:type
zen/string
:d
{
:type
zen/string
:a
{
:type
zen/string
:exclusive-keys
#{
#{
#{
:c
:d
:b
#{
:b
:a
:zen/tags
#{
zen.tests.schema/test-case
:zen/file
"/Users/niquola/.gitlibs/libs/zen-lang/zen/593a18f7f7f780f7024ae5ee2248e50a97d4bcaa/pkg/zen/tests/schema.edn"
:zen/name
zen.tests.schema/map-exclusive-keys
:title
"Test zen/map exclusive keys"
:cases
{
:invalid-2
{
:result
[
[0]
{
:schema
[
[0]
:exclusive-keys
:type
"map.exclusive-keys"
:message
"Expected only one of keyset #{:c :d} or :b, but present (:c :b)"
:example
{
:c
"c"
:b
"b"
:simple
{
:valid
?true
:example
{
:c
"c"
:d
"d"
:a
"a"
:invalid-1
{
:result
[
[0]
{
:schema
[
[0]
:exclusive-keys
:type
"map.exclusive-keys"
:message
"Expected only one of keyset :b or :a, but present (:b :a)"
:example
{
:b
"b"
:a
"a"
:set-of
{
:valid
?true
:example
{
:b
"b"