feat: add support for x-description to override description of resolved

This commit is contained in:
Mattias Runge-Broberg 2020-09-11 10:50:57 +02:00
parent f3e8ab4f8e
commit 115eddf52e

View File

@ -164,6 +164,9 @@ export class OpenAPIParser {
this.exitRef(resolved);
return res;
}
if (obj['x-description']) {
return Object.assign({}, resolved, { description: obj['x-description'] });
}
return resolved;
}
return obj;