Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(dotnet): fix APIResponse.headers type (#14518)

Max Schmitt88ba9c2ff298
diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.js
index 9a71ecee54..b129598bf0 100644
--- a/utils/doclint/generateDotnetApi.js
+++ b/utils/doclint/generateDotnetApi.js
@@ -773,7 +773,7 @@ function translateType(type, parent, generateNameCallback = t => t.name, optiona
// get the inner types of both templates, and if they're strings, it's a keyvaluepair string, string,
const keyType = translateType(type.templates[0], parent, generateNameCallback, false, isReturnType);
const valueType = translateType(type.templates[1], parent, generateNameCallback, false, isReturnType);
- if (parent.name === 'Request' || parent.name === 'Response')
+ if (['Request', 'Response', 'APIResponse'].includes(parent.name))
return `Dictionary<${keyType}, ${valueType}>`;
return `IEnumerable<KeyValuePair<${keyType}, ${valueType}>>`;
}