Skip to content

Commit 20fa604

Browse files
committed
Update CustomUIOptions default value
1 parent f28590a commit 20fa604

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.InProc/Configurations/OpenApiCustomUIOptions.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ public OpenApiCustomUIOptions(Assembly assembly)
1111
{
1212
}
1313

14-
public override string CustomStylesheetPath { get; } = "dist.my-custom.css";
14+
//<!-- Uncomment if you want to use the embedded file. -->
15+
//public override string CustomStylesheetPath { get; } = "dist.my-custom.css";
16+
//public override string CustomJavaScriptPath { get; } = "dist.my-custom.js";
17+
//<!-- Uncomment if you want to use the embedded file. -->
1518

16-
public override string CustomJavaScriptPath { get; } = "dist.my-custom.js";
19+
//<!-- Uncomment if you want to use the external URL. -->
20+
//public override string CustomStylesheetPath { get; } = "https://raw.githubusercontent.com/Azure/azure-functions-openapi-extension/main/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.InProc/dist/my-custom.css";
21+
//public override string CustomJavaScriptPath { get; } = "https://raw.githubusercontent.com/Azure/azure-functions-openapi-extension/main/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.InProc/dist/my-custom.js";
22+
//<!-- Uncomment if you want to use the external URL. -->
1723
}
1824
}

test/Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Tests.Fakes/FakeUriCustomUIOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public FakeUriCustomUIOptions(Assembly assembly)
1212
}
1313

1414
public override string CustomStylesheetPath { get; } =
15-
"https://raw.githubusercontent.com/Azure/azure-functions-openapi-extension/main/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static/dist/my-custom.css";
15+
"https://raw.githubusercontent.com/Azure/azure-functions-openapi-extension/main/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.InProc/dist/my-custom.css";
1616

1717
public override string CustomJavaScriptPath { get; } =
18-
"https://raw.githubusercontent.com/Azure/azure-functions-openapi-extension/main/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.V3Static/dist/my-custom.js";
18+
"https://raw.githubusercontent.com/Azure/azure-functions-openapi-extension/main/samples/Microsoft.Azure.WebJobs.Extensions.OpenApi.FunctionApp.InProc/dist/my-custom.js";
1919
}
2020
}

0 commit comments

Comments
 (0)