Skip to content

Commit 4bb8ec2

Browse files
author
Wael Kdouh
committed
Merge remote-tracking branch 'origin/backends-and-policy-fragments'
2 parents 635fb32 + 314bf63 commit 4bb8ec2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tools/code/publisher/ConfigurationModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public record Backend
7676
{
7777
public string? Name { get; init; }
7878
public string? Description { get; init; }
79+
public string? Url { get; init; }
7980
}
8081

8182
public record Diagnostic
@@ -90,6 +91,7 @@ public record Api
9091
public string? Name { get; init; }
9192
public string? DisplayName { get; init; }
9293
public string? Description { get; init; }
94+
public string? ServiceUrl { get; init; }
9395
public Diagnostic[]? Diagnostics { get; init; }
9496

9597
public record Diagnostic

tools/code/publisher/Publisher.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,8 @@ private async ValueTask PutBackendInformationFile(BackendInformationFile file, C
616616
{
617617
Properties = backendModel.Properties with
618618
{
619-
Description = configurationBackend.Description ?? backendModel.Properties.Description
619+
Description = configurationBackend.Description ?? backendModel.Properties.Description,
620+
Url = configurationBackend.Url ?? backendModel.Properties.Description
620621
}
621622
};
622623
}
@@ -1035,6 +1036,7 @@ private async ValueTask PutApi(common.Models.Api api, ApiSpecificationFile? spec
10351036
{
10361037
DisplayName = configurationApi.DisplayName ?? api.Properties.DisplayName,
10371038
Description = configurationApi.Description ?? api.Properties.Description,
1039+
ServiceUrl = configurationApi.ServiceUrl ?? api.Properties.ServiceUrl
10381040
}
10391041
};
10401042
}

0 commit comments

Comments
 (0)