Skip to content

Commit 5cf2801

Browse files
authored
fix(walker): show description for $ref in fragments of type array (#24)
1 parent 12b5623 commit 5cf2801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/walker/walker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export class Walker extends EventEmitter<WalkerEmitter> {
295295
return [new ReferenceNode(fragment, null), fragment];
296296
}
297297
}
298-
//fragment with type 'array' and no description should adopt description of $ref if it exists
298+
//fragment with type 'array' and no description should adopt description of $ref if it exists.
299299
if (fragment.type === 'array' && fragment.description === void 0) {
300300
if (fragment.items !== void 0 && isObjectLiteral(fragment.items)) {
301301
for (const key of Object.keys(fragment.items)) {

0 commit comments

Comments
 (0)