3.4.4 • Published 3 years ago

@lanetix/record-type-validator v3.4.4

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
3 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

3 years ago

3.4.4

5 years ago

3.4.3

5 years ago

3.4.2

5 years ago

3.4.1

6 years ago

3.4.0

7 years ago

3.3.0

7 years ago

3.2.1

7 years ago

3.2.0

8 years ago

3.1.0

8 years ago

3.0.1

8 years ago

3.0.0

9 years ago

2.0.0

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago