Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.filter((field) => DEFAULT_SCHEMA.hasOwnProperty(field)) // filter out planning only fields
.filter((field) => get(schema[field], 'required') &&