Skip to content

Commit 061a98d

Browse files
author
davidebbo
committed
Add JsonProperty attribs on secrets models
1 parent cce0419 commit 061a98d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

4+
using Newtonsoft.Json;
5+
46
namespace WebJobs.Script.WebHost
57
{
68
public class FunctionSecrets
79
{
10+
[JsonProperty(PropertyName = "key")]
811
public string Key { get; set; }
912
}
1013
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

4+
using Newtonsoft.Json;
5+
46
namespace WebJobs.Script.WebHost
57
{
68
public class HostSecrets
79
{
10+
[JsonProperty(PropertyName = "masterKey")]
811
public string MasterKey { get; set; }
12+
[JsonProperty(PropertyName = "functionKey")]
913
public string FunctionKey { get; set; }
1014
}
1115
}

0 commit comments

Comments
 (0)