Validating multiple polymorphic values using Prismatic Schema
问题 A little while ago I asked about simple polymorphic schemas, and the answer there worked well for a time. Now the map I wish to validate has an additional value which is dependent upon another key's value. A contrived example of the object: {:type :foo {:type :bert {:type :foo :foo-param :bar :bert-size :medium :foo-param :bar :method :baz :method :baz :method :bang :baz-rate :max} :baz-rate :max} :bangness :considerable} The discriminators here are :type and :method , each of which has its