Skip to content
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

Support allowReserved #5031

Merged
merged 7 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
210 changes: 117 additions & 93 deletions package-lock.json

Large diffs are not rendered by default.

87 changes: 58 additions & 29 deletions samples/AnomalyDetector/tspCodeModel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2683,7 +2683,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "322",
Expand All @@ -2709,7 +2710,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "325",
Expand All @@ -2726,7 +2728,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down Expand Up @@ -4738,7 +4741,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "587",
Expand All @@ -4764,7 +4768,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "590",
Expand All @@ -4781,7 +4786,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down Expand Up @@ -6460,7 +6466,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "853",
Expand All @@ -6486,7 +6493,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "856",
Expand All @@ -6503,7 +6511,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down Expand Up @@ -15234,7 +15243,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2171",
Expand All @@ -15260,7 +15270,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down Expand Up @@ -15491,7 +15502,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2207",
Expand All @@ -15517,7 +15529,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2210",
Expand All @@ -15534,7 +15547,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down Expand Up @@ -15799,7 +15813,8 @@
"Explode": false,
"IsRequired": false,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2246",
Expand All @@ -15820,7 +15835,8 @@
"Explode": false,
"IsRequired": false,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2248",
Expand All @@ -15846,7 +15862,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down Expand Up @@ -16151,7 +16168,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2285",
Expand All @@ -16177,7 +16195,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down Expand Up @@ -16297,7 +16316,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2304",
Expand All @@ -16323,7 +16343,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down Expand Up @@ -16600,7 +16621,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2337",
Expand All @@ -16627,7 +16649,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2340",
Expand All @@ -16653,7 +16676,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2343",
Expand All @@ -16670,7 +16694,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down Expand Up @@ -16900,7 +16925,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2375",
Expand All @@ -16927,7 +16953,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2378",
Expand All @@ -16953,7 +16980,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
},
{
"$id": "2381",
Expand All @@ -16970,7 +16998,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Method",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down
2 changes: 1 addition & 1 deletion src/TypeSpec.Extension/Emitter.Csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"@autorest/csharp": "3.0.0-beta.20240625.4",
"json-serialize-refs": "0.1.0-0",
"@typespec/http-client-csharp": "0.1.9-alpha.20240826.1"
"@typespec/http-client-csharp": "0.1.9-alpha.20240902.1"
},
"peerDependencies": {
"@azure-tools/typespec-azure-core": ">=0.36.0 <1.0.0",
Expand Down
22 changes: 22 additions & 0 deletions test/CadlRanchProjects.Tests/routes.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System.Threading.Tasks;
using AutoRest.TestServer.Tests.Infrastructure;
using Microsoft.Extensions.Hosting;
using NUnit.Framework;

namespace CadlRanchProjects.Tests
{
public class RoutesTests : CadlRanchTestBase
{
//[Test]
//public Task Routes_PathParameters_ReservedExpansion_template() => Test(async (host) =>
//{
// await new RoutesClient(host, null).GetPathParametersClient().GetPathParametersReservedExpansionClient().TemplateAsync("foo/bar baz");
//});

//[Test]
//public Task Routes_PathParameters_ReservedExpansion_annotation() => Test(async (host) =>
//{
// await new RoutesClient(host, null).GetPathParametersClient().GetPathParametersReservedExpansionClient().AnnotationAsync("foo/bar baz");
//});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@
"Explode": false,
"IsRequired": true,
"Kind": "Constant",
"Decorators": []
"Decorators": [],
"SkipUrlEncoding": false
}
],
"Responses": [
Expand Down
Loading