Giter VIP home page Giter VIP logo

Comments (2)

niquola avatar niquola commented on August 17, 2024

This is not a bug, but a feature.
Now exclusive keys are set of exclusive groups #{ group-1 group-2 }
where a group is set of keys #{key-1 or key-2}

So in your case it should be :exclusive-keys #{#{:key-1 :key-2}}

from zen.

turtle-bazon avatar turtle-bazon commented on August 17, 2024

according to schema in zen.edn eclusive-keys described as follows

                   :exclusive-keys {:type set
                                    :zen/desc "Set of exclusive groups; each group"
                                    :every {:type set
                                            :minItems 2
                                            :every {:type case
                                                    :case [{:when {:type keyword}}
                                                           {:when {:type set}
                                                            :then {:type set :every {:type keyword}}}]}}}

That mean that is a set of another set elements, which of them has minimum 2 items each of keyword or set of keyboards. So your definition #{:key-1 :key-2} doesn't conform that schema and behavior is correct.

from zen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.