Skip to content

Commit

Permalink
Fixed some SC issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ebjornset committed Nov 10, 2024
1 parent 2bcc45c commit cfbfec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ private static void RemoveSynteticSchemaProperty(JsonSchema jsonSchema)
{
// Hack to get rid of the syntetic $schema property we must use if we want additionalProperties = false in the topmost object
const string schemaPropertyName = "$schema";
if (jsonSchema.Properties.ContainsKey(schemaPropertyName))
{
jsonSchema.Properties.Remove(schemaPropertyName);
}
jsonSchema.Properties.Remove(schemaPropertyName);
}

private static async Task<JsonSchema> LoadJsonSchemaFromFile(string? jsonSchemaFileName, JsonSchemaFileFormat jsonSchemaFileFormat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private static ClassDiagramClass[] ConvertExtensionMethodsToInstanceMethodsOnKno
return classDiagramClasses.Except(removedExtensionClasses).ToArray();
}

private static void GenerateClassAssociationsCompositionsAndAggregations(IDictionary<Type, ClassDiagramClass> classLookup, ClassDiagramClass classDiagramClass)
private static void GenerateClassAssociationsCompositionsAndAggregations(Dictionary<Type, ClassDiagramClass> classLookup, ClassDiagramClass classDiagramClass)
{
foreach (var property in classDiagramClass.Type.GetProperties(
BindingFlags.Instance |
Expand Down Expand Up @@ -179,7 +179,7 @@ private static void GenerateClassInheritanceOrRealizationForInterfaces(Dictionar
}
}

private static void GenerateClassInheritanceForBaseType(IDictionary<Type, ClassDiagramClass> classLookup, ClassDiagramClass classDiagramClass)
private static void GenerateClassInheritanceForBaseType(Dictionary<Type, ClassDiagramClass> classLookup, ClassDiagramClass classDiagramClass)
{
if (classDiagramClass.Type.IsInterface)
{
Expand Down

0 comments on commit cfbfec3

Please sign in to comment.