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

This commit is contained in:
Yury Semikhatsky 2021-03-01 13:00:01 -08:00 committed by GitHub
parent b253ee80c0
commit c390f3950f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
/**