Tags

Ns

Symbols

zen.tests.schema/map-exclusive-keys
{
:schema
{
:typezen/map
:keys
{
:c
:b
:d
:a
:exclusive-keys
#{
#{
#{
:c
:d
:b
#{
:b
:a
:zen/file
"/Users/niquola/.gitlibs/libs/zen-lang/zen/593a18f7f7f780f7024ae5ee2248e50a97d4bcaa/pkg/zen/tests/schema.edn"
: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"