fix: fix anchor links accidentally broken

This commit is contained in:
Roman Hotsiy 2017-03-29 11:25:30 +03:00
parent d52c7ef8a0
commit 2d7d4d3409
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -14,9 +14,9 @@ interface MethodInfo {
description: string;
};
bodyParam: any;
summary: any;
anchor: any;
externalDocs: {
summary: string;
anchor: string;
externalDocs?: {
url: string;
description?: string;
}
@ -60,8 +60,8 @@ export class Method extends BaseComponent implements OnInit {
};
}
buildAnchor() {
this.menu.hashFor(this.pointer,
buildAnchor():string {
return this.menu.hashFor(this.pointer,
{ type: 'method', operationId: this.operationId, pointer: this.pointer },
this.parentTagId );
}