Skip to content

Commit cdabe2f

Browse files
committed
- additional suppressions
Signed-off-by: Vincent Biret <[email protected]>
1 parent 7f8b0c5 commit cdabe2f

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

it/config.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
{
111111
"Pattern": "/v1/users/*",
112112
"Rationale": "avatar_url in usersResponse is invalid"
113+
},
114+
{
115+
"Pattern": "/v1/pages/*",
116+
"Rationale": "code in pageResponse is invalid"
113117
}
114118
]
115119
},
@@ -135,6 +139,12 @@
135139
"Pattern": "/permissionSets/**",
136140
"Rationale": "error 404 is invalid"
137141
}
142+
],
143+
"Suppressions": [
144+
{
145+
"Language": "all",
146+
"Rationale": "https://github.com/microsoft/kiota/issues/2367"
147+
}
138148
]
139149
},
140150
"https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/twilio.com/api/1.39.1/openapi.yaml": {
@@ -191,6 +201,36 @@
191201
"Pattern": "/2010-04-01/Accounts/*/Calls/*/Payments.json",
192202
"Rationale": "Parameter is invalid"
193203
}
204+
],
205+
"Suppressions": [
206+
{
207+
"Language": "csharp",
208+
"Rationale": "https://github.com/microsoft/kiota/issues/2369"
209+
}
210+
]
211+
},
212+
"https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/stripe.com/2022-11-15/openapi.yaml": {
213+
"Suppressions": [
214+
{
215+
"Language": "all",
216+
"Rationale": "https://github.com/microsoft/kiota/issues/2367"
217+
}
218+
]
219+
},
220+
"https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/meraki.com/v1.31.0/openapi.yaml": {
221+
"Suppressions": [
222+
{
223+
"Language": "all",
224+
"Rationale": "https://github.com/microsoft/kiota/issues/2368"
225+
}
226+
]
227+
},
228+
"https://api.apis.guru/v2/specs/docusign.net/v2.1/openapi.yaml": {
229+
"Suppressions": [
230+
{
231+
"Language": "csharp",
232+
"Rationale": "https://github.com/microsoft/kiota/issues/2369"
233+
}
194234
]
195235
}
196236
}

it/get-is-suppressed.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $descriptionValue = $jsonValue.psobject.properties.Where({ $_.name -eq $descript
2020

2121
if ($null -ne $descriptionValue) {
2222
if ($descriptionValue.PSObject.Properties.Name -contains "Suppressions") {
23-
$languageInformation = $descriptionValue.Suppressions | Where-Object { $_.Language -eq $language } | Select-Object -First 1
23+
$languageInformation = $descriptionValue.Suppressions | Where-Object { $_.Language -eq $language -or $_.Language -eq "all" } | Select-Object -First 1
2424
if ($null -ne $languageInformation) {
2525
Write-Warning "Suppressed $descriptionUrl for $language, rationale: $($languageInformation.Rationale)"
2626
return $true

0 commit comments

Comments
 (0)