-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Configuration.OutputDirectory public #5228
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
@@ -150,7 +150,7 @@ private static class Options | |||
/// <summary> Gets the namespace for the models. </summary> | |||
public string ModelNamespace { get; } | |||
|
|||
internal string OutputDirectory { get; } | |||
public string OutputDirectory { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the usage, I don't think we need this to be public in order to accomplish the goal of adding an IsAzureArm property to the Azure plugin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replied Azure/azure-sdk-for-net#47374 (comment)
inputLibrary
is virtual, but without Configuration.OutputDirectory
available it's impossible for sub-plugin to override it.
typespec/packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/CodeModelPlugin.cs
Line 67 in b9e5648
public virtual InputLibrary InputLibrary => _inputLibrary.Value; |
Offline synced with @JoshLove-msft, we will not introduce the inheritance of |
Azure plugin needs to override InputLibrary, which needs
Configuration.OutputDirectory
as input.The actual usage is in Azure/azure-sdk-for-net#47374