Hide unused response fields in diagnoseMigrationHistory
The notion API docs will be updated accordingly. This is to leave us
flexibility in what we do in DevDiagnostic in the near future, and for
simplification's sake.
@@ -23,6 +23,7 @@ pub struct DiagnoseMigrationHistoryInput {
pub struct DiagnoseMigrationHistoryOutput {
/// Whether drift between the expected schema and the dev database could be
/// detected. `None` if the dev database has the expected schema.
+ #[serde(skip)]
pub drift: Option<DriftDiagnostic>,
/// The current status of the migration history of the database relative to
/// migrations directory. `None` if they are in sync and up to date.
@@ -37,6 +38,7 @@ pub struct DiagnoseMigrationHistoryOutput {
/// An optional error encountered when applying a migration that is not
/// applied in the main database to the shadow database. We do this to
/// validate that unapplied migrations are at least minimally valid.
+ #[serde(skip)]
pub error_in_unapplied_migration: Option<user_facing_errors::Error>,
/// Is the migrations table initialized in the database.
pub has_migrations_table: bool,
