common-schema
JSON →Schema handling utilities for validating, processing, and normalizing objects against defined schemas. Version 4.7.3 provides a framework with support for strict and shorthand schema definitions (including mongoose-style constructors), validation via schema.validate() and normalization via schema.normalize(), with type coercion. It is actively maintained, ships TypeScript definitions, and requires Node >= 16. It offers flexible schema definitions, both strict and shorthand formats, and detailed ValidationError objects with field-level error codes. Key differentiators include deep normalization with type coercion and a rich error reporting structure.
Traffic · last 30 days stale · no recent hits
total hits 12
actors 4 distinct systems
last hit 17d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇮🇳 India · 🇦🇺 Australia
Resources
packagecommon-schema ↗