Skip to content

Commit 9ccfc0a

Browse files
committed
Made AppInstanceEntity.cs properties nullable.
1 parent 47faf0d commit 9ccfc0a

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/Seq.Api/Model/AppInstances/AppInstanceEntity.cs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
using Seq.Api.Model.Signals;
2121
using Seq.Api.ResourceGroups;
2222

23+
#nullable enable
24+
2325
namespace Seq.Api.Model.AppInstances
2426
{
2527
/// <summary>
@@ -49,12 +51,12 @@ public AppInstanceEntity()
4951
/// <summary>
5052
/// The id of the <see cref="AppEntity"/> that this is an instance of.
5153
/// </summary>
52-
public string AppId { get; set; }
54+
public string? AppId { get; set; }
5355

5456
/// <summary>
5557
/// The user-friendly title of the app instance.
5658
/// </summary>
57-
public string Title { get; set; }
59+
public string? Title { get; set; }
5860

5961
/// <summary>
6062
/// Values for the settings exposed by the app.
@@ -95,7 +97,7 @@ public AppInstanceEntity()
9597
/// The signal expression describing which events will be sent to the app; if <c>null</c>,
9698
/// all events will reach the app.
9799
/// </summary>
98-
public SignalExpressionPart StreamedSignalExpression { get; set; }
100+
public SignalExpressionPart? StreamedSignalExpression { get; set; }
99101

100102
/// <summary>
101103
/// If a value is specified, events will be buffered to disk and sorted by timestamp-order
@@ -162,13 +164,15 @@ public AppInstanceEntity()
162164
public bool? DisallowManualInput { get; set; }
163165

164166
/// <summary>
165-
/// The name of the application.
167+
/// The name of the app.
166168
/// </summary>
167-
public string AppName { get; set; }
169+
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
170+
public string? AppName { get; set; }
168171

169172
/// <summary>
170-
/// Is the application an input application?
173+
/// If <c>true</c>, then the app is able to write events to the log.
171174
/// </summary>
172-
public bool IsInput { get; set; }
175+
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
176+
public bool? IsInput { get; set; }
173177
}
174178
}

src/Seq.Api/Model/Security/Permission.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public enum Permission
5353
/// Access to administrative features of Seq, management of other users, app installation, backups.
5454
/// </summary>
5555
[Obsolete("The `Setup` permission has been replaced by `Project` and `System`.")]
56-
Setup = 5,
56+
Setup,
5757

5858
/// <summary>
5959
/// Access to settings required for day-to-day operation of Seq, such as users, retention policies, API keys.

0 commit comments

Comments
 (0)