You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our emitter, we have some quite complicated logic when a certain configuration is missing, for instance, we have:
const namespace = options.namespace ?? root.Name;
which takes the namespace from the options (if any), if no, we use the namespace defined in the typespec file as namespace.
Same thing happens to library-name, we are doing it in this way:
This could be cumbersome especially in the context that we are going to remove the configuration namespace (tracking here)
To keep the logic simple, the emitter should just parse whatever in the input, and then pass them through and let the following C# generator to determine which value to fallback when one configuration is missing.
The text was updated successfully, but these errors were encountered:
In our emitter, we have some quite complicated logic when a certain configuration is missing, for instance, we have:
which takes the namespace from the options (if any), if no, we use the namespace defined in the typespec file as namespace.
Same thing happens to
library-name
, we are doing it in this way:This could be cumbersome especially in the context that we are going to remove the configuration
namespace
(tracking here)To keep the logic simple, the emitter should just parse whatever in the input, and then pass them through and let the following C# generator to determine which value to fallback when one configuration is missing.
The text was updated successfully, but these errors were encountered: