Skip to content

Commit

Permalink
Add JsonProperty names for setting file vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Onokaev committed Jan 16, 2025
1 parent e6a542c commit 926759e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Kiota.Builder/Settings/SettingsFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ public SharedAuth Shared
get; set;
}

[JsonPropertyName("remote")]
public AuthenticationSettings Remote
{
get; set;
}

[JsonPropertyName("development")]
public AuthenticationSettings Development
{
get; set;
}

}

public EnvironmentVariables()
{
Shared = new SharedAuth();
Expand All @@ -49,21 +51,25 @@ public class SharedAuth

public class AuthenticationSettings
{
[JsonPropertyName("hostAddress")]
public string HostAddress
{
get; set;
}

[JsonPropertyName("basicAuth")]
public string? BasicAuth
{
get; set;
}

[JsonPropertyName("bearerAuth")]
public string? BearerAuth
{
get; set;
}

[JsonPropertyName("apiKeyAuth")]
public string? ApiKey
{
get; set;
Expand Down

0 comments on commit 926759e

Please sign in to comment.