longshotlabs / simpl-schema

A JavaScript schema validation package that supports direct validation of MongoDB update modifier objects
https://www.npmjs.com/package/simpl-schema
MIT License
560 stars 115 forks source link

Removed supported constructor option warning on already supported option #489

Closed mic1780 closed 10 months ago

mic1780 commented 10 months ago

the option defaultLabel is already a supported option for the SimpleSchema.constructorOptionDefaults function. This code change removes the warning associated with using the defaultLabel option in said function

one example location where defaultLabel is supported as a default option: https://github.com/longshotlabs/simpl-schema/blob/7c47b55494646cd2d816ea00e8c79e173e8d2456/src/SimpleSchema.ts#L1318