Skip to content

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

fix: include parsed .md spec into api.json (#5662)

Yury Semikhatskyc390f3950fdc
diff --git a/utils/doclint/generateApiJson.js b/utils/doclint/generateApiJson.js
index a980a0543b..75448bf9a5 100644
--- a/utils/doclint/generateApiJson.js
+++ b/utils/doclint/generateApiJson.js
@@ -49,7 +49,7 @@ function serialize(documentation) {
* @param {Documentation.Class} clazz
*/
function serializeClass(clazz) {
- const result = { name: clazz.name };
+ const result = { name: clazz.name, spec: clazz.spec };
if (clazz.extends)
result.extends = clazz.extends;
result.langs = clazz.langs;
@@ -88,7 +88,6 @@ function sanitize(result) {
delete result.argsArray;
delete result.clazz;
delete result.enclosingMethod;
- delete result.spec;
}
/**