We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fc6e4f commit 05b39f3Copy full SHA for 05b39f3
gen/KubernetesWatchGenerator/Program.cs
@@ -302,7 +302,11 @@ private static string GetInterfaceName(JsonSchema4 definition)
302
303
if (definition.Properties.TryGetValue("spec", out var specProperty))
304
{
305
- interfaces.Add($"ISpec<{GetClassNameForSchemaDefinition(specProperty.Reference)}>");
+ // ignore empty spec placeholder
306
+ if (specProperty.Reference.ActualProperties.Any())
307
+ {
308
+ interfaces.Add($"ISpec<{GetClassNameForSchemaDefinition(specProperty.Reference)}>");
309
+ }
310
}
311
312
if (_classesWithValidation.Contains(className))
0 commit comments