Skip to content

Commit

Permalink
Allow non XML encoded documents
Browse files Browse the repository at this point in the history
  • Loading branch information
guythetechie authored Dec 7, 2022
1 parent 80b23f0 commit 703aaca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tools/code/common/PolicyFragment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public sealed record PolicyFragmentsUri : IArtifactUri

public PolicyFragmentsUri(ServiceUri serviceUri)
{
Uri = serviceUri.AppendPath("policyFragments");
Uri = serviceUri.AppendPath("policyFragments")
.SetQueryParam("api-version", "2022-04-01-preview")
.ToUri();
}
}

Expand Down
2 changes: 1 addition & 1 deletion tools/code/publisher/PolicyFragment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private static async ValueTask<JsonObject> GetPolicyFragmentJson(PolicyFragmentN
{
["properties"] = new JsonObject
{
["format"] = "xml",
["format"] = "rawxml",
["value"] = await policyFile.ReadAsString(cancellationToken)
}
};
Expand Down

0 comments on commit 703aaca

Please sign in to comment.