2.3.1 • Published 8 years ago

json-schema-fill-defaults v2.3.1

Weekly downloads
30
License
GPL-3.0
Repository
github
Last release
8 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

8 years ago

2.3.0

8 years ago

2.2.0

8 years ago

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago