2.3.1 • Published 7 years ago

json-schema-fill-defaults v2.3.1

Weekly downloads
30
License
GPL-3.0
Repository
github
Last release
7 years ago

To install:

npm install json-schema-fill-defaults --save

After calling:

import autoDefaults from 'json-schema-fill-defaults';

const dataWithDefaults = autoDefaults(data, schema);

the object data will be complemented with default values specified in schema. Whatever already has a value will remain untouched. autoDefaults returns the complemented structure.

http://harmvandendorpel.com

2.3.1

7 years ago

2.3.0

7 years ago

2.2.0

7 years ago

2.1.4

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago