3.4.4 • Published 4 years ago

@lanetix/record-type-validator v3.4.4

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
4 years ago

record-type-validator

Schema validation for Lanetix Record Types

usage

import validate from '@lanetix/record-type-validator'

validate(model)

options

greedy

is-my-json-valid Documentation

import validate from '@lanetix/record-type-validator'

const validationErrors = validate({ property: 'value' }, { greedy: true })

The validate function will return an array of validation errors or null if there were none.

verbose

is-my-json-valid Documentation

import validate from '@lanetix/record-type-validator'

const validationErrors = validate({ property: 'value' }, { verbose: true })

The validate function will return an array of validation errors or null if there were none.

required

Override the required fields property for schema validation

import validate from '@lanetix/record-type-validator'

validate({ property: 'value' }, { required: [] })

schema

is-my-json-valid Documentation

import validate from '@lanetix/record-type-validator'

validate({ property: 'value' }, { schema: { ... }})
3.4.5-beta.0

4 years ago

3.4.4

6 years ago

3.4.3

6 years ago

3.4.2

6 years ago

3.4.1

7 years ago

3.4.0

8 years ago

3.3.0

8 years ago

3.2.1

9 years ago

3.2.0

9 years ago

3.1.0

9 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.0.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago