schema-tools
schema-tools copied to clipboard
Clojure(Script) tools for Plumatic Schema
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
like `st/open-schema` but the other way around.
For library ergonomics, would be great if there was bindings for joda-time classeses too. could be conditional, e.g. if the classes are found in classpath. Many libs (like https://github.com/metosin/metosin-common) still...
``` WARNING: /Users/tommi/projects/metosin/schema-tools/target/advanced_out/schema_tools/swagger/core.js:287: WARNING - References to the global RegExp object prevents optimization of regular expressions. schema_tools.swagger.core.transform_type.cljs$core$IMultiFn$_add_method$arity$3(null,RegExp,(function (_,___$1){ ^^^^^^ ``` I guess it relates to https://github.com/plumatic/schema/pull/165?
Doesn't work currently, tests fail on `phantom`.
see https://github.com/metosin/spec-tools/pull/110#issuecomment-380683927
As discussed with @ikitommi on slack, implement custom error messages per field
Same contract for both for easy travel in between: ```clj (schema-tools.core/spec integer? {:description "kikka" :type-hint :long :default 1}) (schema-tools.core/schema Long {:description "kikka" :default 1}) ``` Relates https://github.com/metosin/spec-tools/issues/23