Skip to content

Commit

Permalink
feat: changes in how the structure node tree is represented #10
Browse files Browse the repository at this point in the history
feat: changes in how the structure node tree is represented
  • Loading branch information
Andras-Csanyi authored May 11, 2024
2 parents 47f6390 + e424eed commit 10fca22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BusinessLogic.Contracts/DocumentResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ public class DocumentResult
public string? Description { get; set; }
public Uri? Uri { get; set; }

public ICollection<DocumentStructureNodeResult> StructureNodes { get; set; } = new List<DocumentStructureNodeResult>();
public DocumentStructureNodeResult StructureNode { get; set; }

Check warning on line 10 in BusinessLogic.Contracts/DocumentResult.cs

View workflow job for this annotation

GitHub Actions / EG.Commons

Non-nullable property 'StructureNode' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.

Check warning on line 10 in BusinessLogic.Contracts/DocumentResult.cs

View workflow job for this annotation

GitHub Actions / Semantic Versioning

Non-nullable property 'StructureNode' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
}
4 changes: 3 additions & 1 deletion BusinessLogic.Contracts/DocumentStructureNodeResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ namespace EncyclopediaGalactica.BusinessLogic.Contracts;
public class DocumentStructureNodeResult
{
public long Id { get; set; }
public string Name { get; set; }

Check warning on line 6 in BusinessLogic.Contracts/DocumentStructureNodeResult.cs

View workflow job for this annotation

GitHub Actions / Semantic Versioning

Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public string Description { get; set; }

Check warning on line 7 in BusinessLogic.Contracts/DocumentStructureNodeResult.cs

View workflow job for this annotation

GitHub Actions / Semantic Versioning

Non-nullable property 'Description' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public long DocumentId { get; set; }
public long ParentId { get; set; }
public ICollection<DocumentStructureNodeResult> StructureNodeResults { get; set; } = new List<DocumentStructureNodeResult>();
public ICollection<DocumentStructureNodeResult> StructureNodes { get; set; } = new List<DocumentStructureNodeResult>();
}

0 comments on commit 10fca22

Please sign in to comment.