Summary
Add automated tests for database schema JSON serialization and deserialization.
Schema snapshots are used by migration generation and must remain stable, deterministic, and compatible.
Current behavior
The schema system can serialize and deserialize:
- schemas;
- tables;
- columns;
- indexes;
- column types;
- column constraints;
- raw SQL default values.
No automated tests currently verify snapshot stability or malformed input behavior.
Expected behavior
A schema serialized to JSON and loaded again must preserve all supported information.
Malformed or incomplete snapshots must fail with useful errors.
Scope
Suggested files
modules/db/tests/schema_json_test.cpp
modules/db/src/schema/Json.cpp
Acceptance criteria
Non-goals
This issue does not include:
- changing the snapshot format;
- adding new schema types;
- schema semantic validation;
- migration diff testing.
Suggested labels
scope:db
type:ci
tests
good first issue
status:ready
Summary
Add automated tests for database schema JSON serialization and deserialization.
Schema snapshots are used by migration generation and must remain stable, deterministic, and compatible.
Current behavior
The schema system can serialize and deserialize:
No automated tests currently verify snapshot stability or malformed input behavior.
Expected behavior
A schema serialized to JSON and loaded again must preserve all supported information.
Malformed or incomplete snapshots must fail with useful errors.
Scope
VARCHARsizes.Suggested files
modules/db/tests/schema_json_test.cppmodules/db/src/schema/Json.cppAcceptance criteria
Non-goals
This issue does not include:
Suggested labels
scope:dbtype:citestsgood first issuestatus:ready