We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e32f35 commit 1972a8fCopy full SHA for 1972a8f
1 file changed
src/Config/ObjectModel/RuntimeConfig.cs
@@ -292,7 +292,7 @@ public RuntimeConfig(
292
};
293
294
_entityNameToDataSourceName = new Dictionary<string, string>();
295
- if (Entities is null && Autoentities is null)
+ if ((Entities is null || Entities.Entities.Count == 0) && Autoentities is null)
296
{
297
throw new DataApiBuilderException(
298
message: "Configuration file should contain either at least the Entities or Autoentities property",
0 commit comments