Skip to content

Commit

Permalink
Avoid cycling reference in observation json objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehats committed Dec 19, 2024
1 parent 7464233 commit 5cc6361
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/Models/Observation.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

namespace BDMS.Models;

Expand Down Expand Up @@ -107,6 +108,7 @@ public class Observation : IChangeTracking, IIdentifyable
/// <summary>
/// Gets or sets the <see cref="Observation"/>'s borehole.
/// </summary>
[JsonIgnore]
public Borehole? Borehole { get; set; }

/// <inheritdoc />
Expand Down

0 comments on commit 5cc6361

Please sign in to comment.