UNPKG

@sprucelabs/schema

Version:

Static and dynamic binding plus runtime validation and transformation to ensure your app is sound. 🤓

16 lines (15 loc) • 614 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = normalizePartialSchemaValues; const normalizeSchemaValues_1 = __importDefault(require("./normalizeSchemaValues")); function normalizePartialSchemaValues(schema, values, options) { //@ts-ignore const normalized = (0, normalizeSchemaValues_1.default)(schema, values, { ...options, shouldIncludeNullAndUndefinedFields: false, }); return normalized; }