Algorithm · Applied Intuition · Medium
Build a configuration validator that compares a supplied config against a schema descriptor and reports every mismatch. Descriptors follow this convention: 'string', 'number', 'boolean', and 'null' describe primitive values. A plain object maps each required field name to its nested descriptor. Every key in the object descriptor is required. Any field present in config but absent from the descriptor must be reported as an unexpected extra field. A descriptor object with the…
Checking your access…