typology
typology copied to clipboard
A data validation library for Node.js and browser
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2. Commits 699c459 3.1.2 2f2b5ff fix: trim pattern 25d7c0d 3.1.1 55dda29 fix: treat nocase:true as always having magic 5e1fb8d 3.1.0 f8145c5 Add 'allowWindowsEscape' option 570e8b1...
To be nitpicky, it would be really nice to have the concerned type in the error message when 'Invalid type' errors occur.
- [ ] : More precise errors. - [ ] : Partial validation through the `~` sigil. - [ ] : Flags (regex like) - [x] : Possibility to pass...
``` javascript typology.scan( { key: 'string' }, { key: 555 } ); > error: "Expected a "string" but found a "number"." > path: "key" ``` ``` javascript typology.add( 'custom_type', {...
`Expected a \"string\" but found a \"undefined\".` Should be `Expected \"string\" but found \"undefined\".` So that types with a plural names don't create silly grammatical havoc.