Skip to content

Commit 6b4d528

Browse files
authored
fix: include parsed .md spec into api.json (#5662) (#5663)
1 parent 9a4d690 commit 6b4d528

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils/doclint/generateApiJson.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function serialize(documentation) {
4949
* @param {Documentation.Class} clazz
5050
*/
5151
function serializeClass(clazz) {
52-
const result = { name: clazz.name };
52+
const result = { name: clazz.name, spec: clazz.spec };
5353
if (clazz.extends)
5454
result.extends = clazz.extends;
5555
result.langs = clazz.langs;
@@ -88,7 +88,6 @@ function sanitize(result) {
8888
delete result.argsArray;
8989
delete result.clazz;
9090
delete result.enclosingMethod;
91-
delete result.spec;
9291
}
9392

9493
/**

0 commit comments

Comments
 (0)