From d069e545fcf983f665c0879276426563b84c5933 Mon Sep 17 00:00:00 2001 From: Aaron Burtle Date: Wed, 6 May 2026 17:25:05 -0700 Subject: [PATCH 1/2] Make JsonConstructor DataSource parameter nullable to match property annotation --- src/Config/ObjectModel/RuntimeConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Config/ObjectModel/RuntimeConfig.cs b/src/Config/ObjectModel/RuntimeConfig.cs index 0162052965..1ef5c073e6 100644 --- a/src/Config/ObjectModel/RuntimeConfig.cs +++ b/src/Config/ObjectModel/RuntimeConfig.cs @@ -317,7 +317,7 @@ public bool RemoveGeneratedAutoentityNameFromDataSourceName(string entityName) [JsonConstructor] public RuntimeConfig( string? Schema, - DataSource DataSource, + DataSource? DataSource, RuntimeEntities Entities, RuntimeAutoentities? Autoentities = null, RuntimeOptions? Runtime = null, From 351ac97614c2c6b993ba05f081fa9fa339b15c0f Mon Sep 17 00:00:00 2001 From: Aaron Burtle Date: Wed, 6 May 2026 17:39:48 -0700 Subject: [PATCH 2/2] Update DataSource parameter doc to reflect nullable annotation --- src/Config/ObjectModel/RuntimeConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Config/ObjectModel/RuntimeConfig.cs b/src/Config/ObjectModel/RuntimeConfig.cs index 1ef5c073e6..21d2c23252 100644 --- a/src/Config/ObjectModel/RuntimeConfig.cs +++ b/src/Config/ObjectModel/RuntimeConfig.cs @@ -310,7 +310,7 @@ public bool RemoveGeneratedAutoentityNameFromDataSourceName(string entityName) /// To be used when setting up from cli json scenario. /// /// schema for config. - /// Default datasource. + /// Default datasource. May be null for root configs that use and delegate the data source to child configs. /// Entities /// Runtime settings. /// List of datasource files for multiple db scenario. Null for single db scenario.