Skip to content

Releases: trojs/validator

Fix the custom type error validation

16 Apr 14:57
e09bfc8
Compare
Choose a tag to compare
Merge pull request #170 from hckrnews/feature/fix-custom-type-validation

Fix the custom type error validation

custom type check test

15 Apr 19:22
57554e8
Compare
Choose a tag to compare
Merge pull request #169 from hckrnews/feature/custom-type-check-test

Feature/custom type check test

Optimize questionmark remove from keys

15 Apr 18:43
f12f7d9
Compare
Choose a tag to compare
4.2.1

Merge pull request #168 from hckrnews/feature/optimize-questionmark-r…

questionmark can now also on the end on the keys

15 Apr 18:22
d5fd5b7
Compare
Choose a tag to compare
{
    name: String,
    age: Number,
    birthDay: Date,
    '?siblings': Array,
    'metaData?': Object,
    active: Boolean,
    address: addressSchema,
    companies: companySchema,
};

Add the function type, so an object can contain also functions

15 Apr 16:56
acd284b
Compare
Choose a tag to compare
const barSchema = {
    name: "string",
    address: "string",
    drinks: "object",
    build: 'function'

const barObj = {
    name: 'Jimmys drinks',
    address: 'Somewhere over the rainbow',
    drinks: {
        beer: ['Straffe Hendrik', 'Rochefort', 'St Bernard'],
    },
    build: () => {}
};

const validator = new Validator(barSchema);

validator.validate(barObj);

Fix the boolean

02 Apr 15:14
5a9ffcb
Compare
Choose a tag to compare

Also change the version to 4.x because npm audit blame this package has a vulnerability. ( https://www.npmjs.com/advisories/42 )
But its the package validator and not @hckrnews/validator
So i skipped to 4.x so npm audit dont blame this anymore.

Fix null and undefined values for optional fields

02 Dec 15:34
e1c2500
Compare
Choose a tag to compare
Merge pull request #60 from hckrnews/bug/optional-fields

Fix null and undefined values for optional fields

Fix lock file

24 Nov 19:15
Compare
Choose a tag to compare
2.1.6

Fix lock file

Publish package to GitHub

24 Nov 18:01
Compare
Choose a tag to compare
2.1.5

Publish to GitHub

Add url and date validation

24 Nov 10:42
bca39cd
Compare
Choose a tag to compare
Merge pull request #51 from hckrnews/feature/add-url-validation

Add url and date validation