Skip to content

Commit a27319d

Browse files
committed
feat: Trim config.json file (remove App/Fw Update URLs)
1 parent fa8b4f0 commit a27319d

3 files changed

Lines changed: 3 additions & 13 deletions

File tree

PostCodeSerialMonitor/Models/AppConfiguration.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,16 @@ public class AppConfiguration
77
{
88
[Required]
99
[Range(1, int.MaxValue)]
10-
public int FormatVersion { get; set; } = 1;
10+
public int FormatVersion { get; set; } = 2;
1111

1212
public bool CheckForAppUpdates { get; set; } = true;
1313
public bool CheckForCodeUpdates { get; set; } = true;
1414
public bool CheckForFwUpdates { get; set; } = true;
1515

16-
[Required]
17-
[Url]
18-
public Uri AppUpdateUrl { get; set; } = new Uri("https://example.com/todo");
19-
2016
[Required]
2117
[Url]
2218
public Uri CodesMetaBaseUrl { get; set; } = new Uri("https://errors.xboxresearch.com");
2319

24-
[Required]
25-
[Url]
26-
public Uri FwUpdateUrl { get; set; } = new Uri("https://example.com/todo");
27-
2820
[Required]
2921
public string Language { get; set; } = "en-US";
3022

PostCodeSerialMonitor/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace PostCodeSerialMonitor;
1212

1313
public static class ServiceCollectionExtensions
1414
{
15-
const int SUPPORTED_CONFIG_FORMAT_VERSION = 1;
15+
const int SUPPORTED_CONFIG_FORMAT_VERSION = 2;
1616
public static void AddCommonServices(this IServiceCollection collection)
1717
{
1818
// Configure logging

PostCodeSerialMonitor/config.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
22
"AppConfiguration": {
3-
"FormatVersion": 1,
3+
"FormatVersion": 2,
44
"CheckForAppUpdates": true,
55
"CheckForCodeUpdates": true,
66
"CheckForFwUpdates": true,
7-
"AppUpdateUrl": "https://example.com/todo",
87
"CodesMetaBaseUrl": "https://errors.xboxresearch.com/",
9-
"FwUpdateUrl": "https://example.com/todo",
108
"MetaStoragePath": "meta",
119
"Language": "en-US",
1210
"MetaJsonUrl": "https://errors.xboxresearch.com/meta.json"

0 commit comments

Comments
 (0)