Skip to content

length-of does not work for vectors #44

@spiffytech

Description

@spiffytech
cms.validation=> ((vr/length-of :stuff :is 5) {:stuff [1 2 3 4 5]})

ClassCastException clojure.lang.PersistentVector cannot be cast to java.lang.CharSequence  clojure.string/blank? (string.clj:291)

I see you're using count under the hood, so length-of should be adaptable? In any case, it would sure be great to have a vector length validation function in Validateur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions