Skip to content

Commit

Permalink
fix: include parsed .md spec into api.json (microsoft#5662) (microsof…
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Mar 1, 2021
1 parent 9a4d690 commit 6b4d528
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/doclint/generateApiJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -88,7 +88,6 @@ function sanitize(result) {
delete result.argsArray;
delete result.clazz;
delete result.enclosingMethod;
delete result.spec;
}

/**
Expand Down

0 comments on commit 6b4d528

Please sign in to comment.