json-schema-migrate-x

JSON →
library 2.1.0 ·javascript
verified Jun 7, 2026

An actively maintained fork of json-schema-migrate for migrating JSON Schema between drafts: draft-04 to draft-07, draft-2019-09, or draft-2020-12. Version 2.1.0 ships TypeScript types, follows conventional commits, and uses Ajv under the hood. It replaces boolean exclusiveMinimum/Maximum with number form, converts single-value enum to const, replaces constant with const, empty schema with true, and schema {"not":{}} with false. draft2019 additionally splits dependencies into dependentRequired and dependentSchemas and handles $anchor. draft2020 converts array items to prefixItems.