Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion specification/cognitiveservices/AnomalyDetector/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using TypeSpec.Versioning;
Supported Azure Cognitive Services endpoints (protocol and host name, such as
https://westus2.api.cognitive.microsoft.com).
""")
Endpoint: string,
Endpoint: url,

@doc("Api Version")
@path
Expand Down
2 changes: 1 addition & 1 deletion specification/cognitiveservices/ContentSafety/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ using Azure.Core;
Supported Cognitive Services endpoints (protocol and hostname, for example:
https://<resource-name>.cognitiveservices.azure.com).
""")
endpoint: string,
endpoint: url,
}
)
@doc("Analyze harmful content")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"in": "path",
"description": "Supported Azure Cognitive Services endpoints (protocol and host name, such as\nhttps://westus2.api.cognitive.microsoft.com).",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
},
{
"name": "ApiVersion",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"in": "path",
"description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://<resource-name>.cognitiveservices.azure.com).",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"in": "path",
"description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://<resource-name>.cognitiveservices.azure.com).",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
11 changes: 11 additions & 0 deletions specification/communication/Communication.JobRouter/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import "@azure-tools/typespec-client-generator-core";
import "@typespec/versioning";

import "./main.tsp";
import "./models.tsp";

using Azure.ClientGenerator.Core;
using TypeSpec.Versioning;
Expand Down Expand Up @@ -142,3 +143,13 @@ interface JobRouterRestClient {
@access(Access.internal, "csharp")
listWorkers is AzureCommunicationRoutingService.JobRouterOperations.listWorkers;
}

// Remove the leading "c" in the version enum identifiers for C#
@@clientName(AzureCommunicationRoutingService.Versions.c2023_11_01,
"2023_11_01",
"csharp"
);
@@clientName(AzureCommunicationRoutingService.Versions.c2024_01_18_Preview,
"2024_01_18_Preview",
"csharp"
);
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using Azure.Core.Traits;
"Azure Communication Routing Service",
{
@doc("Uri of your Communication resource")
endpoint: string,
endpoint: url,
}
)
@versioned(Versions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"in": "path",
"description": "Uri of your Communication resource",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"in": "path",
"description": "Uri of your Communication resource",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using Azure.Core;
"https://{endpoint}",
"These APIs allow end users to create, view and run load tests using Azure Load Test Service.",
{
endpoint: string,
endpoint: url,
}
)
@doc("""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"name": "endpoint",
"in": "path",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"name": "endpoint",
"in": "path",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"name": "endpoint",
"in": "path",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"name": "endpoint",
"in": "path",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"name": "endpoint",
"in": "path",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"name": "endpoint",
"in": "path",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"name": "endpoint",
"in": "path",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"name": "endpoint",
"in": "path",
"required": true,
"type": "string"
"type": "string",
"format": "uri",
"x-ms-skip-url-encoding": true
}
]
},
Expand Down
Loading