Conversation
|
@chunyu3 When trying to compile the C# CADL using this repo for Azure Notification Hubs, I get the following: > azure-notificationhubs-cadl@1.0.0 build:csharp
> cadl compile main.cadl --emit ../autorest.csharp.fork/src/CADL.Extension/Emitter.Csharp/dist/src/index.js --output-path cadl-output/csharp
Cadl compiler v0.35.0
No API-Version provided.
Compilation completed successfully, output files are in ~/git/azure-notificationhubs-cadl/cadl-output/csharp.This seems new where before it was picking up the API version successfully. See the current |
I tried locally, but I cannot reproduce this issue. @mpodwysocki would you please try again? if it still has problem, we can setup meeting and work together for this, thanks. |
|
@chunyu3 Ok, rechecked and all works as expected. Thanks |
confirmed. This issue does not occur. close it. |
| // continue; | ||
| // } | ||
|
|
||
| const isEndpoint: boolean = endpoint === (`{${name}}`); |
There was a problem hiding this comment.
We probably can be even more specific and check for name "$host", similar to M4: https://github.com/Azure/autorest/blob/5149dd0311cd5fad437ac18cff1e387b0835c1a5/packages/extensions/modelerfour/src/modeler/modelerfour.ts#L1748
There was a problem hiding this comment.
We probably can be even more specific and check for name
"$host", similar to M4: https://github.com/Azure/autorest/blob/5149dd0311cd5fad437ac18cff1e387b0835c1a5/packages/extensions/modelerfour/src/modeler/modelerfour.ts#L1748
Hello @AlexanderSher cadl will not define host parameter as global client parameter, it only define @server to define url. So we may not need to check this.
Description
Fix #2730
we need to support following Url schemas:
For #1, #2, we still change
urlStrtoendpointwith Url type and isEndpoint=true. AndparameterNameis a normal client parameter with String type, isEndpoint=falseFor #3, #4, both
namespaceandparameterNameare normal client parameter with string type, and isEndpoint=falseChecklist
To ensure a quick review and merge, please ensure:
Ready to Land?