Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into apiVersion3856
  • Loading branch information
pshao25 committed Dec 26, 2023
2 parents 48129b5 + 9db8983 commit e3b099d
Show file tree
Hide file tree
Showing 80 changed files with 7,116 additions and 3,249 deletions.
4 changes: 2 additions & 2 deletions eng/Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ if (![string]::IsNullOrWhiteSpace($filter)) {
}
}

if ($reset -or $env:TF_BUILD) {
$typespecCount = ([string]::IsNullOrWhiteSpace($filter) ? $tspDefinitions : $tspDefinitions.Keys.Where({ $_ -match $filter })).Count
$typespecCount = ([string]::IsNullOrWhiteSpace($filter) ? $tspDefinitions : $tspDefinitions.Keys.Where({ $_ -match $filter })).Count
if ($reset -or $env:TF_BUILD) {
$swaggerCount = $keys.Count - $typespecCount
if ($swaggerCount -gt 0) {
AutoRest-Reset;
Expand Down
2 changes: 1 addition & 1 deletion eng/testProjects.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"encode/duration",
"projection/projected-name",
"payload/content-negotiation",
"payload/media-type",
"payload/pageable",
"server/path/multiple",
"server/path/single",
Expand All @@ -39,7 +40,6 @@
"parameters/collection-format",
"parameters/spread",
"parameters/body-optionality",
"client/structure/default",
"client/structure/multi-client",
"client/structure/renamed-operation",
"client/structure/two-operation-group"
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 72 additions & 45 deletions samples/AnomalyDetector/src/Generated/tspCodeModel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2204,8 +2204,8 @@
},
{
"$id": "298",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
"$id": "299",
"Name": "String",
Expand All @@ -2215,7 +2215,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": true,
"IsContentType": false,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand All @@ -2231,8 +2231,8 @@
},
{
"$id": "301",
"Name": "accept",
"NameInRequest": "Accept",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Type": {
"$id": "302",
"Name": "String",
Expand All @@ -2242,7 +2242,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": false,
"IsContentType": true,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand All @@ -2268,7 +2268,10 @@
},
"BodyMediaType": "Json",
"Headers": [],
"IsErrorResponse": false
"IsErrorResponse": false,
"ContentTypes": [
"application/json"
]
}
],
"HttpMethod": "POST",
Expand Down Expand Up @@ -2315,8 +2318,8 @@
},
{
"$id": "307",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
"$id": "308",
"Name": "String",
Expand All @@ -2326,7 +2329,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": true,
"IsContentType": false,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand All @@ -2342,8 +2345,8 @@
},
{
"$id": "310",
"Name": "accept",
"NameInRequest": "Accept",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Type": {
"$id": "311",
"Name": "String",
Expand All @@ -2353,7 +2356,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": false,
"IsContentType": true,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand All @@ -2379,7 +2382,10 @@
},
"BodyMediaType": "Json",
"Headers": [],
"IsErrorResponse": false
"IsErrorResponse": false,
"ContentTypes": [
"application/json"
]
}
],
"HttpMethod": "POST",
Expand Down Expand Up @@ -2426,8 +2432,8 @@
},
{
"$id": "316",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
"$id": "317",
"Name": "String",
Expand All @@ -2437,7 +2443,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": true,
"IsContentType": false,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand All @@ -2453,8 +2459,8 @@
},
{
"$id": "319",
"Name": "accept",
"NameInRequest": "Accept",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Type": {
"$id": "320",
"Name": "String",
Expand All @@ -2464,7 +2470,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": false,
"IsContentType": true,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand All @@ -2490,7 +2496,10 @@
},
"BodyMediaType": "Json",
"Headers": [],
"IsErrorResponse": false
"IsErrorResponse": false,
"ContentTypes": [
"application/json"
]
}
],
"HttpMethod": "POST",
Expand Down Expand Up @@ -2589,7 +2598,10 @@
},
"BodyMediaType": "Json",
"Headers": [],
"IsErrorResponse": false
"IsErrorResponse": false,
"ContentTypes": [
"application/json"
]
}
],
"HttpMethod": "GET",
Expand Down Expand Up @@ -2633,8 +2645,8 @@
},
{
"$id": "334",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
"$id": "335",
"Name": "String",
Expand All @@ -2644,7 +2656,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": true,
"IsContentType": false,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand All @@ -2660,8 +2672,8 @@
},
{
"$id": "337",
"Name": "accept",
"NameInRequest": "Accept",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Type": {
"$id": "338",
"Name": "String",
Expand All @@ -2671,7 +2683,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": false,
"IsContentType": true,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand Down Expand Up @@ -2710,7 +2722,10 @@
}
}
],
"IsErrorResponse": false
"IsErrorResponse": false,
"ContentTypes": [
"application/json"
]
}
],
"HttpMethod": "POST",
Expand Down Expand Up @@ -2818,7 +2833,10 @@
},
"BodyMediaType": "Json",
"Headers": [],
"IsErrorResponse": false
"IsErrorResponse": false,
"ContentTypes": [
"application/json"
]
}
],
"HttpMethod": "GET",
Expand Down Expand Up @@ -2988,7 +3006,10 @@
},
"BodyMediaType": "Json",
"Headers": [],
"IsErrorResponse": false
"IsErrorResponse": false,
"ContentTypes": [
"application/json"
]
}
],
"HttpMethod": "GET",
Expand Down Expand Up @@ -3053,8 +3074,8 @@
},
{
"$id": "371",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
"$id": "372",
"Name": "String",
Expand All @@ -3064,7 +3085,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": true,
"IsContentType": false,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand All @@ -3080,8 +3101,8 @@
},
{
"$id": "374",
"Name": "accept",
"NameInRequest": "Accept",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Type": {
"$id": "375",
"Name": "String",
Expand All @@ -3091,7 +3112,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": false,
"IsContentType": true,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand Down Expand Up @@ -3142,7 +3163,10 @@
}
}
],
"IsErrorResponse": false
"IsErrorResponse": false,
"ContentTypes": [
"application/json"
]
}
],
"HttpMethod": "POST",
Expand Down Expand Up @@ -3210,8 +3234,8 @@
},
{
"$id": "386",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Name": "accept",
"NameInRequest": "Accept",
"Type": {
"$id": "387",
"Name": "String",
Expand All @@ -3221,7 +3245,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": true,
"IsContentType": false,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand All @@ -3237,8 +3261,8 @@
},
{
"$id": "389",
"Name": "accept",
"NameInRequest": "Accept",
"Name": "contentType",
"NameInRequest": "Content-Type",
"Type": {
"$id": "390",
"Name": "String",
Expand All @@ -3248,7 +3272,7 @@
"Location": "Header",
"IsApiVersion": false,
"IsResourceParameter": false,
"IsContentType": false,
"IsContentType": true,
"IsRequired": true,
"IsEndpoint": false,
"SkipUrlEncoding": false,
Expand All @@ -3274,7 +3298,10 @@
},
"BodyMediaType": "Json",
"Headers": [],
"IsErrorResponse": false
"IsErrorResponse": false,
"ContentTypes": [
"application/json"
]
}
],
"HttpMethod": "POST",
Expand Down
Loading

0 comments on commit e3b099d

Please sign in to comment.