-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
good first issueGood for newcomersGood for newcomers
Milestone
Description
pgroll
defines a JSON schema for migration file validation, used by third-party tools such as the Xata migration editor, but does not use the schema for itself during migration validation.
pgroll
should use JSON schema validation during the Validate
phase of a migration to rule out obvious errors in migrations such as missing fields. Currently some, but not all, of the checks that JSON schema validation would perform are done by hand in the various Validate
methods for each operation.
Using JSON schema validation would allow removal of many of these checks, leaving only 'semantic' checks in Validate
methods such as 'does the table the operation attempts to modify exist in the schema'.
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers