i know in the past this has been something of inte...
# cfml-general
s
i know in the past this has been something of interest JSON Schema Validation, I found javascript library that has a very nice and readable syntax that may have some overlaps with
cbValidate
but it is in more of a functional style. Before I go down the rabbit hole of converting this module would there be any interested in using it? Please comment in thread if so
the module, for reference: https://github.com/jquense/yup
There may be a different approach as to instead extend functionality of cbValidation to just include any functionality available in this project
a couple nice utilities available i already see are
json()
,
concat()
,
pick()
,
omit()
,
from()
i also really like the chaining syntax
Copy code
count: yup.number().when('isBig', ([isBig], schema) => {
    return isBig ? schema.min(5) : schema.min(0);
  }),
which i think could be used in place of the struct. the
when
syntax is similar to
qb
which i absolutely love
z
Lucee has an extension which does schema validation too
s
can you post a link to it